20 #define TENSOR_LOAD_IMPL
21 #include <tensor/sparse.h>
25 static cdouble coerce(
double c) {
return to_complex(c); }
28 to_complex(
const RSparse &s)
30 Vector<cdouble> data(s.length());
31 std::transform(s.priv_data().begin(), s.priv_data().end(), data.begin(),
33 return CSparse(s.dimensions(), s.priv_row_start(), s.priv_column(),