28 #ifndef _CHAINCON_AWDIAG_H_ 29 #define _CHAINCON_AWDIAG_H_ 37 #include "chomp/system/config.h" 50 template <
class CellT>
54 int_t size = ch. size ();
55 for (int_t n = 0; n < size; ++ n)
62 template <
class CellT,
class CoefT>
66 int_t size = ch. size ();
67 for (int_t n = 0; n < size; ++ n)
69 if (ch. getCoef (n) == 1)
77 tmp *= ch. getCoef (n);
85 #endif // _CHAINCON_AWDIAG_H_ A chain with coefficients in an arbitrary ring.
A tensor of chains with coefficients in an arbitrary commutative ring.
Combinatorial tensor of cells.
A combinatorial tensor (for coefficients in Z_2).
void AWdiagonal(const tCombChain< CellT > &ch, tCombTensor< CellT, CellT > &t)
Computes the Alexander-Whitney diagonal of a chain, using the procedure defined for individual cells...