23 #ifndef COLORSPACE_H_INCLUDED 24 #define COLORSPACE_H_INCLUDED 38 std::vector<csl::Index> indices;
43 bool isSymmetrized()
const {
44 return indices.size() <= 2
45 or symmetry == indices.size() - 1;
62 const std::string& t_name,
77 std::string getName()
const override;
79 bool hasSpecialTraceProperty(
80 const csl::vector_expr& tensors)
const override;
82 csl::Expr calculateTrace(csl::vector_expr tensors)
const override;
88 bool isInstance(
csl::Expr const &tensor)
const;
92 std::vector<TraceIndices> &terms
95 std::vector<TraceIndices> symmetrize(
TraceIndices const &init)
const;
104 std::vector<mty::TraceIdentity>
const &identities
109 void mergeTraces(std::vector<TraceIndices> &traces)
const;
111 bool contractCloseIndices(
116 std::vector<TraceIndices> commuteTo(
122 std::vector<TraceIndices> contractFarIndices(
127 std::vector<TraceIndices> contractStructureConstants(
132 using Modifier = std::function<
133 std::vector<TraceIndices>(
138 std::vector<TraceIndices> &indices,
142 bool contractFarIndices(
143 std::vector<TraceIndices> &indices,
147 bool contractStructureConstants(
148 std::vector<TraceIndices> &indices,
152 std::vector<TraceIndices>
154 std::vector<csl::Index>
const &indices,
166 std::vector<csl::Index> exprToIndices(
167 std::vector<csl::Expr>
const &tensors
170 std::tuple<csl::Index, csl::Index, int> getFreeIndices(
175 std::tuple<csl::Index, csl::Index, int> getFreeIndicesAdjoint(
Base class for all Semi simple groups, i.e. groups that has a SemiSimpleAlgebra.
Definition: group.h:219
Group objects handling different possible symmetry groups. For now only semi-simple groups have repre...
std::ostream & operator<<(std::ostream &fout, csl::Type type)
Namespace of MARTY.
Definition: 2HDM.h:31
Definition: traceIdentities.h:31
Abstract base class for all semi-simple Lie algebras.
Definition: semiSimpleAlgebra.h:96
Class inherited from csl::Space that is used for vector spaces of group representations, in particular for generators.
Definition: colorSpace.h:57
Definition: colorSpace.h:36
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...
Definition: amplitudeSimplification.h:38