22 #ifndef REPRESENTATION_H_INCLUDED 23 #define REPRESENTATION_H_INCLUDED 60 const std::vector<AlgebraState>& t_rep,
61 const std::vector<int>& multiplicities);
89 std::vector<AlgebraState>::iterator
begin();
95 std::vector<AlgebraState>::const_iterator
begin()
const;
101 std::vector<AlgebraState>::iterator
end();
107 std::vector<AlgebraState>::const_iterator
end()
const;
158 std::vector<AlgebraState>
getRep()
const;
172 std::vector<int>
getMult()
const;
342 std::vector<AlgebraState>
rep;
377 SumIrrep(
const std::vector<Irrep>& t_irrep);
411 void insertSort(
const Irrep& other);
std::vector< int > getMult() const
Returns the multiplicities in a std::vector of integers.
Definition: representation.cpp:113
std::vector< AlgebraState >::iterator end()
Definition: representation.cpp:73
std::vector< AlgebraState >::iterator begin()
Definition: representation.cpp:63
int dim
Dimension of the Irrep, i.e. the sum of all AlgebraState's mutiplicities.
Definition: representation.h:325
size_t size() const
Returns the size of the Irrep, i.e. the number of different states.
Definition: representation.cpp:53
bool operator>(const Irrep &other) const
Comparison operator, compares the dimension of the two Irrep in order to sort Irrep objects by their ...
Definition: representation.cpp:162
const SemiSimpleAlgebra * algebra
Pointer to the SemiSimpleAlgebra from which the Irrep is a representation.
Definition: representation.h:331
std::vector< AlgebraState > rep
Set of AlgebraState in the representation, in a std::vector. The highest weight state is in position ...
Definition: representation.h:342
const SemiSimpleAlgebra * getAlgebra() const
Definition: representation.cpp:98
AlgebraState getHighestWeight() const
Returns the highest weight state of the representation.
Definition: representation.cpp:103
Namespace of MARTY.
Definition: 2HDM.h:31
Class inherited from std::vector<int>, dynkin labels for a state of a semi-simple algebra (see docume...
Definition: algebraState.h:35
int getDim() const
The dimension of the representation is the sum of multiplicities of all states in it...
Definition: representation.cpp:83
bool operator<=(const Irrep &other) const
Comparison operator, compares the dimension of the two Irrep in order to sort Irrep objects by their ...
Definition: representation.cpp:167
bool operator!=(const Irrep &other) const
Inverse of Irrep::operator==().
Definition: representation.cpp:183
Contains a sum of Irrep (irreducible representation) of a given SemiSimpleAlgebra.
Definition: representation.h:363
Irrep()
Default constructor. Initializes an empty irrep.
Definition: representation.cpp:29
bool operator<(const Irrep &other) const
Comparison operator, compares the dimension of the two Irrep in order to sort Irrep objects by their ...
Definition: representation.cpp:157
SumIrrep operator+(const Irrep &other) const
Implements the sum of the Irrep with another (other), stores it in a SumIrrep and returns it...
Definition: representation.cpp:189
friend std::ostream & operator<<(std::ostream &fout, const Irrep &irrep)
Overload of the operator<< for Irrep. Displays the highest weight and the dimension.
SumIrrep operator*(const Irrep &other) const
Calculates and returns the product of ***this** and other in the form of a sum of irreducible represe...
Definition: representation.cpp:204
Abstract base class for all semi-simple Lie algebras.
Definition: semiSimpleAlgebra.h:96
~Irrep()
Destructor.
Definition: representation.h:66
bool operator>=(const Irrep &other) const
Comparison operator, compares the dimension of the two Irrep in order to sort Irrep objects by their ...
Definition: representation.cpp:172
std::vector< AlgebraState > getRep() const
Returns all the states in the representation.
Definition: representation.cpp:108
const SemiSimpleAlgebra * algebra
Pointer to the algebra from which the Irreps in the sum are irreducible representations.
Definition: representation.h:475
Handles the irreducible representation of a given semi-simple algebra.
Definition: representation.h:42
Semi simple Lie algebras: calculations of highest weight representations, products and sums of repres...
AlgebraState highestWeight
Highest weight state of the representation.
Definition: representation.h:336
bool empty() const
Tells if the Irrep is empty, i.e. contains no state.
Definition: representation.cpp:58
bool operator==(const Irrep &other) const
Compares two Irreps.
Definition: representation.cpp:177
std::vector< int > mult
Set of multiplicities in the the representation, to each state is associated a multiplicity. The highest weight's multiplicity is one.
Definition: representation.h:348
AlgebraState & operator[](int i)
Returns the state in position i. Bound checks are done.
Definition: representation.cpp:131
~SumIrrep()
Destructor.
Definition: representation.h:389
csl::Expr getCharge() const
Returns the charge (csl::Expr, can be a fraction) of a representation.
Definition: representation.cpp:88
Irrep getConjugatedRep() const
Creates and returns the conjugated rep, i.e. the rep with inverted dinkin labels. ...
Definition: representation.cpp:118