Documentation of MARTY
A Modern ARtificial Theoretical phYsicist
Public Member Functions | Friends
mty::AlgebraState Class Reference

Class inherited from std::vector<int>, dynkin labels for a state of a semi-simple algebra (see documentation od SemiSimpleAlgebra). More...

#include <algebraState.h>

Inheritance diagram for mty::AlgebraState:
[legend]

Public Member Functions

 AlgebraState ()
 Default constructor. Initializes an empty vector of labels.
 
 AlgebraState (const std::vector< int > &vec)
 Constructor with one parameter. More...
 
AlgebraState applyAnnihilator (const std::vector< int > &shifts) const
 Applies shifts on labels coming from annihilation operators. Creates a new state with labels "labels - shift". More...
 
int eigenValue (const std::vector< int > &root, const std::vector< int > &normRoots, int normLambda) const
 Calculates the eigenvalue of the state with respect to the root root, considering l simple roots (then l dinkin labels). More...
 
std::vector< int > getLabels () const
 Converts the state into a simple std::vector of int corresponding to the l dinkin labels of the state. More...
 
bool operator< (AlgebraState const &other) const
 

Friends

std::ostream & operator<< (std::ostream &fout, const AlgebraState &state)
 Overload of the operator<< for AlgebraState, displays the labels in the output fout. More...
 

Detailed Description

Class inherited from std::vector<int>, dynkin labels for a state of a semi-simple algebra (see documentation od SemiSimpleAlgebra).

Constructor & Destructor Documentation

◆ AlgebraState()

mty::AlgebraState::AlgebraState ( const std::vector< int > &  vec)
inlineexplicit

Constructor with one parameter.

Parameters
vecstd::vector of int containing the dinkin labels of the state.

Member Function Documentation

◆ applyAnnihilator()

AlgebraState mty::AlgebraState::applyAnnihilator ( const std::vector< int > &  shifts) const

Applies shifts on labels coming from annihilation operators. Creates a new state with labels "labels - shift".

Parameters
shiftsstd::vector of int with a size corresponding to the number of labels.
Returns
The modified state with shifts applied.

◆ eigenValue()

int mty::AlgebraState::eigenValue ( const std::vector< int > &  root,
const std::vector< int > &  normRoots,
int  normLambda 
) const

Calculates the eigenvalue of the state with respect to the root root, considering l simple roots (then l dinkin labels).

Parameters
rootDinkin labels of the root (size l).
normRootsNorm of the l simple roots.
normLambdaNorm of the root \( \lambda \).
Returns
The eigenvalue of the state with respect to root.

◆ getLabels()

vector< int > mty::AlgebraState::getLabels ( ) const

Converts the state into a simple std::vector of int corresponding to the l dinkin labels of the state.

Returns
The dinkin labels of the state in a std::vector<int>.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  fout,
const AlgebraState state 
)
friend

Overload of the operator<< for AlgebraState, displays the labels in the output fout.

Parameters
foutOutput flux.
stateAlgebraState to display.
Returns
The modified flux.

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