ShiftNpcLinearOperator

  • full name: tenpy.linalg.sparse.ShiftNpcLinearOperator

  • parent module: tenpy.linalg.sparse

  • type: class

Inheritance Diagram

Inheritance diagram of tenpy.linalg.sparse.ShiftNpcLinearOperator

Methods

ShiftNpcLinearOperator.__init__(...)

ShiftNpcLinearOperator.adjoint()

Return the hermitian conjugate of self.

ShiftNpcLinearOperator.matvec(vec)

ShiftNpcLinearOperator.to_matrix()

Contract self to a matrix.

ShiftNpcLinearOperator.unwrapped()

Return to the original NpcLinearOperator.

class tenpy.linalg.sparse.ShiftNpcLinearOperator(orig_operator, shift)[source]

Bases: NpcLinearOperatorWrapper

Represents original_operator + shift * identity.

This can be useful e.g. for better Lanczos convergence.

to_matrix()[source]

Contract self to a matrix.

adjoint()[source]

Return the hermitian conjugate of self.

If self is hermitian, subclasses can choose to implement this to define the adjoint operator of self.

unwrapped()[source]

Return to the original NpcLinearOperator.

If multiple levels of wrapping were used, this returns the most unwrapped one.