Cadabra
Computer algebra system for field theory problems
|
#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) |
AdjformEx & | operator+= (const AdjformEx &other) |
void | multiply (const integer_type &k) |
AdjformEx & | operator*= (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_type & | get (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) |
using cadabra::AdjformEx::const_iterator = map_t::const_iterator |
using cadabra::AdjformEx::integer_type = int32_t |
using cadabra::AdjformEx::iterator = map_t::iterator |
using cadabra::AdjformEx::map_t = std::map<Adjform, integer_type> |
cadabra::AdjformEx::AdjformEx | ( | ) |
cadabra::AdjformEx::AdjformEx | ( | const Adjform & | adjform, |
const integer_type & | value = 1 |
||
) |
void cadabra::AdjformEx::add | ( | const Adjform & | adjform, |
const integer_type & | value = 1 |
||
) |
|
private |
void cadabra::AdjformEx::apply_cyclic_symmetry | ( | ) |
void cadabra::AdjformEx::apply_ident_symmetry | ( | const std::vector< size_t > & | positions, |
size_t | n_indices | ||
) |
void cadabra::AdjformEx::apply_ident_symmetry | ( | const std::vector< size_t > & | positions, |
size_t | n_indices, | ||
const std::vector< std::vector< int >> & | commutation_matrix | ||
) |
void cadabra::AdjformEx::apply_young_symmetry | ( | const std::vector< size_t > & | indices, |
bool | antisymmetric | ||
) |
AdjformEx::iterator cadabra::AdjformEx::begin | ( | ) |
AdjformEx::const_iterator cadabra::AdjformEx::begin | ( | ) | const |
void cadabra::AdjformEx::clear | ( | ) |
void cadabra::AdjformEx::combine | ( | const AdjformEx & | other | ) |
void cadabra::AdjformEx::combine | ( | const AdjformEx & | other, |
integer_type | factor | ||
) |
AdjformEx::integer_type cadabra::AdjformEx::compare | ( | const AdjformEx & | other | ) | const |
bool cadabra::AdjformEx::empty | ( | ) | const |
AdjformEx::iterator cadabra::AdjformEx::end | ( | ) |
AdjformEx::const_iterator cadabra::AdjformEx::end | ( | ) | const |
const AdjformEx::integer_type & cadabra::AdjformEx::get | ( | const Adjform & | adjform | ) | const |
size_t cadabra::AdjformEx::max_size | ( | ) | const |
void cadabra::AdjformEx::multiply | ( | const integer_type & | k | ) |
size_t cadabra::AdjformEx::n_indices | ( | ) | const |
AdjformEx & cadabra::AdjformEx::operator*= | ( | const integer_type & | k | ) |
void cadabra::AdjformEx::set | ( | const Adjform & | adjform, |
const integer_type & | value = 1 |
||
) |
|
private |
size_t cadabra::AdjformEx::size | ( | ) | const |
|
friend |
|
private |
|
staticprivate |