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