20 #include <tensor/tensor.h>
24 const Tensor<cdouble> fold(
const Tensor<double> &a,
int ndx1,
25 const Tensor<cdouble> &b,
int ndx2)
27 return fold(to_complex(a), ndx1, b, ndx2);
30 const Tensor<cdouble> foldc(
const Tensor<double> &a,
int ndx1,
31 const Tensor<cdouble> &b,
int ndx2)
33 return fold(to_complex(a), ndx1, b, ndx2);
36 const Tensor<cdouble> mmult(
const Tensor<double> &m1,
const Tensor<cdouble> &m2)
38 return fold(to_complex(m1), -1, m2, 0);
41 const Tensor<cdouble> fold(
const Tensor<cdouble> &a,
int ndx1,
42 const Tensor<double> &b,
int ndx2)
44 return fold(a, ndx1, to_complex(b), ndx2);
47 const Tensor<cdouble> foldc(
const Tensor<cdouble> &a,
int ndx1,
48 const Tensor<double> &b,
int ndx2)
50 return foldc(a, ndx1, to_complex(b), ndx2);
53 const Tensor<cdouble> mmult(
const Tensor<cdouble> &m1,
const Tensor<double> &m2)
55 return fold(m1, -1, to_complex(m2), 0);