vt::expand_dims_rhs#

template<typename T, size_t N, size_t D>
Tensor<T, N + D> vt::expand_dims_rhs(const Tensor<T, N> &x)#

Expand the dimensions of the tensor on the right side.

Template Parameters:
  • T – Data type of the tensor.

  • N – Number of dimensions of the tensor.

  • D – Number of dimensions to expand.

Parameters:

x – The tensor object.

Returns:

Tensor<T, N + D>