21 #include <tensor/tensor.h>
25 const Indices squeeze_dimensions(
const Indices &d)
27 Indices output(d.size() - std::count(d.begin(), d.end(), 1));
28 Indices::const_iterator b = d.begin();
29 for (Indices::iterator a = output.begin(); a != output.end() && b != d.end(); b++) {