Public Types | Public Member Functions | Private Attributes

tCombTensor< CellT > Class Template Reference

Combinatorial tensor of cells. More...

#include <combtensor.h>

List of all members.

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.

Detailed Description

template<class CellT>
class tCombTensor< CellT >

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.


Member Typedef Documentation

template<class CellT>
typedef CellT tCombTensor< CellT >::CellType

The type of cells in the combinatorial tensor.

Definition at line 56 of file combtensor.h.


Constructor & Destructor Documentation

template<class CellT >
tCombTensor< CellT >::tCombTensor (  ) [inline]

The default constructor of an empty combinatorial tensor.

Definition at line 97 of file combtensor.h.


Member Function Documentation

template<class CellT >
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.

template<class CellT >
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.

template<class CellT >
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.

template<class CellT >
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.

template<class CellT >
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.

template<class CellT >
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.

template<class CellT >
int_t tCombTensor< CellT >::size (  ) const [inline]

Returns the number of elements in the combinatorial tensor.

Definition at line 103 of file combtensor.h.

template<class CellT >
void tCombTensor< CellT >::swap ( tCombTensor< CellT > &  ch ) [inline]

Swaps the data with another tensor.

Definition at line 159 of file combtensor.h.


Member Data Documentation

template<class CellT>
tCombChain<tPair<CellT,CellT> > tCombTensor< CellT >::tensor [private]

The set of elements in the combinatorial tensor.

Definition at line 90 of file combtensor.h.


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