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