1 #ifndef TEMPLATE_ALGORITHMS_HH
2 #define TEMPLATE_ALGORITHMS_HH
121 template<
class Container,
class T>
128 for(i = 0; i < rows.
size(); i++) {
129 for(j = 0; j < i; j++)
130 rows[i] -=
dot(rows[i], rows[j]) * rows[j];
132 tcoeff =
norm(rows[i]);
static void orthogonalize(Array< Container > &rows)
T norm(const Tensor< T > &ttens)
EigenIndex Index
For long integer indexing:
T dot(const Tensor< T > &LHS, const Tensor< T > &RHS)
Basic std::vector like container (deprecated)