Combinatorial tensor of cells. More...
#include <combtensor.h>
Public Types | |
typedef CellT | CellType |
The type of cells in the combinatorial tensor. | |
Public Member Functions | |
tCombTensor () | |
The default constructor of an empty combinatorial tensor. | |
int_t | size () const |
Returns the number of elements in the combinatorial tensor. | |
bool | empty () const |
Returns true if and only if the tensor is zero (empty set). | |
const CellT & | left (int_t n) const |
Returns the n-th left element of the combinatorial tensor. | |
const CellT & | right (int_t n) const |
Returns the n-th right element of the combinatorial tensor. | |
void | add (const CellT &c1, const CellT &c2) |
Adds a pair of cells to the combinatorial tensor. | |
void | add (const tCombChain< CellT > &c1, const tCombChain< CellT > &c2) |
Adds a pair of chains to the combinatorial tensor. | |
void | add (const tCombTensor< CellT > &ch) |
Adds a given tensor to the combinatorial tensor. | |
void | swap (tCombTensor< CellT > &ch) |
Swaps the data with another tensor. | |
Private Attributes | |
tCombChain< tPair< CellT, CellT > > | tensor |
The set of elements in the combinatorial tensor. |
Combinatorial tensor of cells.
This is in fact a list of pairs of cells of the given type. One can add products of chains to the tensor, which is then decomposed into tensors of individual cells and reduced.
Definition at line 52 of file combtensor.h.
typedef CellT tCombTensor< CellT >::CellType |
The type of cells in the combinatorial tensor.
Definition at line 56 of file combtensor.h.
tCombTensor< CellT >::tCombTensor | ( | ) | [inline] |
The default constructor of an empty combinatorial tensor.
Definition at line 97 of file combtensor.h.
void tCombTensor< CellT >::add | ( | const CellT & | c1, |
const CellT & | c2 | ||
) | [inline] |
Adds a pair of cells to the combinatorial tensor.
Definition at line 127 of file combtensor.h.
void tCombTensor< CellT >::add | ( | const tCombChain< CellT > & | c1, |
const tCombChain< CellT > & | c2 | ||
) | [inline] |
Adds a pair of chains to the combinatorial tensor.
Definition at line 133 of file combtensor.h.
void tCombTensor< CellT >::add | ( | const tCombTensor< CellT > & | ch ) | [inline] |
Adds a given tensor to the combinatorial tensor.
Definition at line 151 of file combtensor.h.
bool tCombTensor< CellT >::empty | ( | ) | const [inline] |
Returns true if and only if the tensor is zero (empty set).
Definition at line 109 of file combtensor.h.
const CellT & tCombTensor< CellT >::left | ( | int_t | n ) | const [inline] |
Returns the n-th left element of the combinatorial tensor.
Definition at line 115 of file combtensor.h.
const CellT & tCombTensor< CellT >::right | ( | int_t | n ) | const [inline] |
Returns the n-th right element of the combinatorial tensor.
Definition at line 121 of file combtensor.h.
int_t tCombTensor< CellT >::size | ( | ) | const [inline] |
Returns the number of elements in the combinatorial tensor.
Definition at line 103 of file combtensor.h.
void tCombTensor< CellT >::swap | ( | tCombTensor< CellT > & | ch ) | [inline] |
Swaps the data with another tensor.
Definition at line 159 of file combtensor.h.
tCombChain<tPair<CellT,CellT> > tCombTensor< CellT >::tensor [private] |
The set of elements in the combinatorial tensor.
Definition at line 90 of file combtensor.h.