NpcLinearOperatorWrapper

  • full name: tenpy.linalg.sparse.NpcLinearOperatorWrapper

  • parent module: tenpy.linalg.sparse

  • type: class

Inheritance Diagram

Inheritance diagram of tenpy.linalg.sparse.NpcLinearOperatorWrapper

Methods

NpcLinearOperatorWrapper.__init__(orig_operator)

NpcLinearOperatorWrapper.adjoint()

Return the hermitian conjugate of self.

NpcLinearOperatorWrapper.to_matrix()

Contract self to a matrix.

NpcLinearOperatorWrapper.unwrapped()

Return to the original NpcLinearOperator.

class tenpy.linalg.sparse.NpcLinearOperatorWrapper(orig_operator)[source]

Bases: object

Base class for wrapping around another NpcLinearOperator.

Attributes not explicitly set with self.attribute = value (or by defining methods) default to the attributes of the wrapped orig_operator.

Warning

If there are multiple levels of wrapping operators, the order might be critical to get correct results; e.g. OrthogonalNpcLinearOperator needs to be the outer-most wrapper to produce correct results and/or be efficient.

Parameters:

orig_operator (NpcLinearOperator) – The original operator implementing the matvec.

orig_operator

The original operator implementing the matvec.

Type:

NpcLinearOperator

unwrapped()[source]

Return to the original NpcLinearOperator.

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

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.