19 #define TENSOR_LOAD_IMPL
20 #include <tensor/tensor.h>
24 double norm2(
const CTensor &r)
26 return ::sqrt(real(scprod(r, r)));
29 cdouble scprod(
const CTensor &a,
const CTensor &b)
32 for (CTensor::const_iterator ia = a.begin(), ib = b.begin();
33 ia != a.end(); ia++, ib++)
const RTensor conj(const RTensor &r)
Complex conjugate of a real tensor.