GiNaC 1.8.7
Namespaces | Macros | Functions
color.cpp File Reference

Implementation of GiNaC's color (SU(3) Lie algebra) objects. More...

#include "color.h"
#include "idx.h"
#include "ncmul.h"
#include "symmetry.h"
#include "operators.h"
#include "numeric.h"
#include "mul.h"
#include "power.h"
#include "symbol.h"
#include "archive.h"
#include "utils.h"
#include <iostream>
#include <stdexcept>

Go to the source code of this file.

Namespaces

namespace  GiNaC
 

Macros

#define TEST_PERMUTATION(A, B, C, P)
 
#define CMPINDICES(A, B, C)   ((v[0] == (A)) && (v[1] == (B)) && (v[2] == (C)))
 

Functions

 GiNaC::GINAC_IMPLEMENT_REGISTERED_CLASS_OPT (su3one, tensor, print_func< print_dflt >(&su3one::do_print). print_func< print_latex >(&su3one::do_print_latex)) GINAC_IMPLEMENT_REGISTERED_CLASS_OPT(su3t
 
 GiNaC::print_func< print_dflt > (&su3t::do_print). print_func< print_latex >(&su3t
 
 GiNaC::GINAC_BIND_UNARCHIVER (color)
 
 GiNaC::GINAC_BIND_UNARCHIVER (su3one)
 
 GiNaC::GINAC_BIND_UNARCHIVER (su3t)
 
 GiNaC::GINAC_BIND_UNARCHIVER (su3f)
 
 GiNaC::GINAC_BIND_UNARCHIVER (su3d)
 
static ex GiNaC::permute_free_index_to_front (const exvector &iv3, const exvector &iv2, int &sig)
 Given a vector iv3 of three indices and a vector iv2 of two indices that is a subset of iv3, return the (free) index that is in iv3 but not in iv2 and the sign introduced by permuting that index to the front. More...
 
ex GiNaC::color_ONE (unsigned char rl=0)
 Create the su(3) unity element. More...
 
ex GiNaC::color_T (const ex &a, unsigned char rl=0)
 Create an su(3) generator. More...
 
ex GiNaC::color_f (const ex &a, const ex &b, const ex &c)
 Create an su(3) antisymmetric structure constant. More...
 
ex GiNaC::color_d (const ex &a, const ex &b, const ex &c)
 Create an su(3) symmetric structure constant. More...
 
ex GiNaC::color_h (const ex &a, const ex &b, const ex &c)
 This returns the linear combination d.a.b.c+I*f.a.b.c. More...
 
static bool GiNaC::is_color_tinfo (const return_type_t &ti)
 Check whether a given tinfo key (as returned by return_type_tinfo() is that of a color object (with an arbitrary representation label). More...
 
static unsigned char GiNaC::get_representation_label (const return_type_t &ti)
 Extract representation label from tinfo key (as returned by return_type_tinfo()). More...
 
ex GiNaC::color_trace (const ex &e, const std::set< unsigned char > &rls)
 Calculate color traces over the specified set of representation labels. More...
 
ex GiNaC::color_trace (const ex &e, const lst &rll)
 Calculate color traces over the specified list of representation labels. More...
 
ex GiNaC::color_trace (const ex &e, unsigned char rl=0)
 Calculate the trace of an expression containing color objects with a specified representation label. More...
 

Detailed Description

Implementation of GiNaC's color (SU(3) Lie algebra) objects.

Definition in file color.cpp.

Macro Definition Documentation

◆ TEST_PERMUTATION

#define TEST_PERMUTATION (   A,
  B,
  C,
 
)
Value:
if (iv3[B].is_equal(iv2[0]) && iv3[C].is_equal(iv2[1])) { \
sig = P; \
return iv3[A]; \
}

◆ CMPINDICES

#define CMPINDICES (   A,
  B,
 
)    ((v[0] == (A)) && (v[1] == (B)) && (v[2] == (C)))

This page is part of the GiNaC developer's reference. It was generated automatically by doxygen. For an introduction, see the tutorial.