TBTK
TBTK::ArrayState Class Reference
Inheritance diagram for TBTK::ArrayState:
TBTK::AbstractState TBTK::ParallelepipedArrayState

Public Member Functions

 ArrayState (std::initializer_list< unsigned int > resolution)
 
virtual ~ArrayState ()
 
virtual ArrayStateclone () const
 
virtual std::complex< double > getOverlap (const AbstractState &bra) const
 
virtual std::complex< double > getMatrixElement (const AbstractState &bra, const AbstractOperator &o=DefaultOperator()) const
 
void setAmplitude (std::complex< double > amplitude, std::initializer_list< unsigned int > element)
 
void setAmplitude (std::complex< double > amplitude, const std::vector< unsigned int > &element)
 
void setAmplitude (std::complex< double > amplitude, const Index &element)
 
const std::complex< double > & getAmplitude (std::initializer_list< unsigned int > element) const
 
const std::complex< double > & getAmplitude (const std::vector< unsigned int > &element) const
 
const std::complex< double > & getAmplitude (const Index &element) const
 
- Public Member Functions inherited from TBTK::AbstractState
 AbstractState (StateID stateID)
 
virtual ~AbstractState ()
 
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 IndexgetIndex () const
 
const IndexgetContainer () const
 
double getExtent () const
 
bool hasFiniteExtent () const
 

Protected Member Functions

const std::vector< unsigned int > & getResolution () const
 

Additional Inherited Members

- Public Types inherited from TBTK::AbstractState
enum  StateID { Basic = 0 }
 

Constructor & Destructor Documentation

TBTK::ArrayState::ArrayState ( std::initializer_list< unsigned int >  resolution)

Constructor.

virtual TBTK::ArrayState::~ArrayState ( )
virtual

Destructor.

Member Function Documentation

virtual ArrayState* TBTK::ArrayState::clone ( ) const
virtual

Implements AbstracState::clone().

Implements TBTK::AbstractState.

Reimplemented in TBTK::ParallelepipedArrayState.

const std::complex< double > & TBTK::ArrayState::getAmplitude ( std::initializer_list< unsigned int >  element) const
inline

Get amplitude.

const std::complex< double > & TBTK::ArrayState::getAmplitude ( const std::vector< unsigned int > &  element) const
inline

Get amplitude.

const std::complex< double > & TBTK::ArrayState::getAmplitude ( const Index element) const
inline

Get amplitude.

virtual std::complex<double> TBTK::ArrayState::getMatrixElement ( const AbstractState bra,
const AbstractOperator o = DefaultOperator() 
) const
virtual

Implements AbstractState::getMatrixElementWith().

Implements TBTK::AbstractState.

Reimplemented in TBTK::ParallelepipedArrayState.

virtual std::complex<double> TBTK::ArrayState::getOverlap ( const AbstractState bra) const
virtual

Implements AbstractState::getOverlapWith().

Implements TBTK::AbstractState.

Reimplemented in TBTK::ParallelepipedArrayState.

const std::vector< unsigned int > & TBTK::ArrayState::getResolution ( ) const
inlineprotected

Returns a vector containing the storage resolution.

void TBTK::ArrayState::setAmplitude ( std::complex< double >  amplitude,
std::initializer_list< unsigned int >  element 
)
inline

Set amplitude.

void TBTK::ArrayState::setAmplitude ( std::complex< double >  amplitude,
const std::vector< unsigned int > &  element 
)
inline

Set amplitude.

void TBTK::ArrayState::setAmplitude ( std::complex< double >  amplitude,
const Index element 
)
inline

Set amplitude.


The documentation for this class was generated from the following file: