SyTen

◆ resize()

template<Rank rank, typename Scalar >
DenseTensor<rank, Scalar> syten::resize ( DenseTensor< rank, Scalar > const &  a,
std::array< Index, rank > const &  newDim,
Ordinal  which = Ordinal::First 
)
inline

Returns a resized dense tensor.

The new dimensions have to be larger or equal than the old dimensions and will be zero-padded if larger. which defines whether the non-zero elements come first in the new tensor (Ordinal::First) or second (Ordinal::Second)

Referenced by syten::STensorImpl::expand(), expansion(), and project().

+ Here is the caller graph for this function: