Cadabra
Computer algebra system for field theory problems
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
cadabra::AdjformEx Class Reference

#include <Adjform.hh>

Public Types

using integer_type = int32_t
 
using map_t = std::map< Adjform, integer_type >
 
using iterator = map_t::iterator
 
using const_iterator = map_t::const_iterator
 

Public Member Functions

 AdjformEx ()
 
 AdjformEx (const Adjform &adjform, const integer_type &value=1)
 
integer_type compare (const AdjformEx &other) const
 
void combine (const AdjformEx &other)
 
void combine (const AdjformEx &other, integer_type factor)
 
AdjformExoperator+= (const AdjformEx &other)
 
void multiply (const integer_type &k)
 
AdjformExoperator*= (const integer_type &k)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void clear ()
 
size_t size () const
 
size_t max_size () const
 
size_t n_indices () const
 
bool empty () const
 
const integer_typeget (const Adjform &adjform) const
 
void set (const Adjform &adjform, const integer_type &value=1)
 
void add (const Adjform &adjform, const integer_type &value=1)
 
void apply_young_symmetry (const std::vector< size_t > &indices, bool antisymmetric)
 
void apply_ident_symmetry (const std::vector< size_t > &positions, size_t n_indices)
 
void apply_ident_symmetry (const std::vector< size_t > &positions, size_t n_indices, const std::vector< std::vector< int >> &commutation_matrix)
 
void apply_cyclic_symmetry ()
 

Private Member Functions

void set_ (const Adjform &adjform, const integer_type &value=1)
 
void add_ (const Adjform &adjform, const integer_type &value=1)
 

Private Attributes

map_t data
 

Static Private Attributes

static integer_type zero = 0
 

Friends

AdjformEx operator+ (AdjformEx lhs, const AdjformEx &rhs)
 
AdjformEx operator* (AdjformEx lhs, const integer_type &rhs)
 

Member Typedef Documentation

◆ const_iterator

using cadabra::AdjformEx::const_iterator = map_t::const_iterator

◆ integer_type

◆ iterator

using cadabra::AdjformEx::iterator = map_t::iterator

◆ map_t

Constructor & Destructor Documentation

◆ AdjformEx() [1/2]

cadabra::AdjformEx::AdjformEx ( )

◆ AdjformEx() [2/2]

cadabra::AdjformEx::AdjformEx ( const Adjform adjform,
const integer_type value = 1 
)

Member Function Documentation

◆ add()

void cadabra::AdjformEx::add ( const Adjform adjform,
const integer_type value = 1 
)

◆ add_()

void cadabra::AdjformEx::add_ ( const Adjform adjform,
const integer_type value = 1 
)
private

◆ apply_cyclic_symmetry()

void cadabra::AdjformEx::apply_cyclic_symmetry ( )

◆ apply_ident_symmetry() [1/2]

void cadabra::AdjformEx::apply_ident_symmetry ( const std::vector< size_t > &  positions,
size_t  n_indices 
)

◆ apply_ident_symmetry() [2/2]

void cadabra::AdjformEx::apply_ident_symmetry ( const std::vector< size_t > &  positions,
size_t  n_indices,
const std::vector< std::vector< int >> &  commutation_matrix 
)

◆ apply_young_symmetry()

void cadabra::AdjformEx::apply_young_symmetry ( const std::vector< size_t > &  indices,
bool  antisymmetric 
)

◆ begin() [1/2]

AdjformEx::iterator cadabra::AdjformEx::begin ( )

◆ begin() [2/2]

AdjformEx::const_iterator cadabra::AdjformEx::begin ( ) const

◆ clear()

void cadabra::AdjformEx::clear ( )

◆ combine() [1/2]

void cadabra::AdjformEx::combine ( const AdjformEx other)

◆ combine() [2/2]

void cadabra::AdjformEx::combine ( const AdjformEx other,
integer_type  factor 
)

◆ compare()

AdjformEx::integer_type cadabra::AdjformEx::compare ( const AdjformEx other) const

◆ empty()

bool cadabra::AdjformEx::empty ( ) const

◆ end() [1/2]

AdjformEx::iterator cadabra::AdjformEx::end ( )

◆ end() [2/2]

AdjformEx::const_iterator cadabra::AdjformEx::end ( ) const

◆ get()

const AdjformEx::integer_type & cadabra::AdjformEx::get ( const Adjform adjform) const

◆ max_size()

size_t cadabra::AdjformEx::max_size ( ) const

◆ multiply()

void cadabra::AdjformEx::multiply ( const integer_type k)

◆ n_indices()

size_t cadabra::AdjformEx::n_indices ( ) const

◆ operator*=()

AdjformEx & cadabra::AdjformEx::operator*= ( const integer_type k)

◆ operator+=()

AdjformEx & cadabra::AdjformEx::operator+= ( const AdjformEx other)

◆ set()

void cadabra::AdjformEx::set ( const Adjform adjform,
const integer_type value = 1 
)

◆ set_()

void cadabra::AdjformEx::set_ ( const Adjform adjform,
const integer_type value = 1 
)
private

◆ size()

size_t cadabra::AdjformEx::size ( ) const

Friends And Related Function Documentation

◆ operator*

AdjformEx operator* ( AdjformEx  lhs,
const integer_type rhs 
)
friend

◆ operator+

AdjformEx operator+ ( AdjformEx  lhs,
const AdjformEx rhs 
)
friend

Member Data Documentation

◆ data

map_t cadabra::AdjformEx::data
private

◆ zero

AdjformEx::integer_type cadabra::AdjformEx::zero = 0
staticprivate

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