BoostNpcLinearOperator

  • full name: tenpy.linalg.sparse.BoostNpcLinearOperator

  • parent module: tenpy.linalg.sparse

  • type: class

Inheritance Diagram

Inheritance diagram of tenpy.linalg.sparse.BoostNpcLinearOperator

Methods

BoostNpcLinearOperator.__init__(...)

BoostNpcLinearOperator.adjoint()

Return the hermitian conjugate of self.

BoostNpcLinearOperator.matvec(vec)

BoostNpcLinearOperator.to_matrix()

Contract self to a matrix.

BoostNpcLinearOperator.unwrapped()

Return to the original NpcLinearOperator.

class tenpy.linalg.sparse.BoostNpcLinearOperator(orig_operator, boosts, boost_vecs)[source]

Bases: NpcLinearOperatorWrapper

Represents original_operator + shift_i * |vec_i><vec_i|.

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.