20 #include "tensor_foldin.cc"
38 do_foldin_into(output, a, _ndx1, b, _ndx2);
50 do_foldin_into(output, a, _ndx1, b, _ndx2);
const Tensor< double > foldin(const Tensor< double > &a, int _ndx1, const Tensor< double > &b, int _ndx2)
Contraction of two tensors with complex conjugation.
void foldin_into(Tensor< double > &output, const Tensor< double > &a, int _ndx1, const Tensor< double > &b, int _ndx2)
Similar to foldin(), but the output has been preallocated.