20 #include "tensor_fold.cc"
43 do_fold<double, false>(output, a, ndx1, b, ndx2);
56 do_fold<double, false>(output, a, ndx1, b, ndx2);
60 void fold_into(Tensor<double> &c,
const Tensor<double> &a,
int ndx1,
61 const Tensor<double> &b,
int ndx2)
63 do_fold<double, false>(c, a, ndx1, b, ndx2);
68 const Tensor<double> mmult(
const Tensor<double> &m1,
const Tensor<double> &m2)
70 return fold(m1, -1, m2, 0);
73 void mmult_into(Tensor<double> &c,
const Tensor<double> &m1,
const Tensor<double> &m2)
75 fold_into(c, m1, -1, m2, 0);
const Tensor< double > fold(const Tensor< double > &a, int ndx1, const Tensor< double > &b, int ndx2)
Contraction of two tensors.
const Tensor< double > foldc(const Tensor< double > &a, int ndx1, const Tensor< double > &b, int ndx2)
Contraction of two tensors.