|
TBTK
|
Public Types | |
| enum | StateID { Basic = 0 } |
Public Member Functions | |
| AbstractState (StateID stateID) | |
| virtual | ~AbstractState () |
| virtual AbstractState * | clone () const =0 |
| virtual std::complex< double > | getOverlap (const AbstractState &ket) const =0 |
| virtual std::complex< double > | getMatrixElement (const AbstractState &ket, const AbstractOperator &o=DefaultOperator()) const =0 |
| StateID | getStateID () const |
| void | setCoordinates (std::initializer_list< double > coordinates) |
| void | setCoordinates (const std::vector< double > &coordinates) |
| void | setSpecifiers (std::initializer_list< int > specifiers) |
| void | setSpecifiers (const std::vector< int > &specifiers) |
| void | setIndex (const Index &index) |
| void | setContainer (const Index &container) |
| void | setExtent (double extent) |
| const std::vector< double > & | getCoordinates () const |
| const std::vector< int > & | getSpecifiers () const |
| const Index & | getIndex () const |
| const Index & | getContainer () const |
| double | getExtent () const |
| bool | hasFiniteExtent () const |
List of state identifiers. Officially supported operators are given unique identifiers. Operators not (yet) supported should make sure they use an identifier that does not clash with the officially supported ones [ideally a large random looking number (magic number) to also minimize accidental clashes with other operators that are not (yet) supported].
| TBTK::AbstractState::AbstractState | ( | StateID | stateID | ) |
Constructor.
|
virtual |
Destructor.
|
pure virtual |
Returns a pointer to a clone of the State.
Implemented in TBTK::BasicState.
|
inline |
Get container.
|
inline |
Get coordinates.
|
inline |
Get radial extent.
|
inline |
Get index.
|
pure virtual |
Pure virtual matrix element function. Returns the value of the11 operation
, where
and
are the argument bra and the object itself, respectively, and o is an operator.
Implemented in TBTK::BasicState.
|
pure virtual |
Pure virtual overlap function. Returns the value of the operation
, where
and
are the argument bra and the object itself, respectively.
Implemented in TBTK::BasicState.
|
inline |
Get specifiers.
|
inline |
Get state identifier.
|
inline |
Returns true if the state has finite extent.
|
inline |
Set container. (For example a unit cell index.)
| void TBTK::AbstractState::setCoordinates | ( | std::initializer_list< double > | coordinates | ) |
Set coordinates.
| void TBTK::AbstractState::setCoordinates | ( | const std::vector< double > & | coordinates | ) |
Set coordinates.
|
inline |
Set radial extent.
|
inline |
Set index.
| void TBTK::AbstractState::setSpecifiers | ( | std::initializer_list< int > | specifiers | ) |
Set specifiers.
| void TBTK::AbstractState::setSpecifiers | ( | const std::vector< int > & | specifiers | ) |
Set specifiers.
1.8.11