20 #include <tensor/tensor.h>
24 const Indices squeeze_dimensions(
const Indices &d);
const RTensor squeeze(const RTensor &t)
Eliminate all singleton dimensions from a tensor, preserving the data.
Real Tensor with elements of type "double".
const RTensor reshape(const RTensor &t, const Indices &new_dims)
Return a RTensor with same data and given dimensions.
const Indices & dimensions() const
Return Tensor dimensions.