stack#

Stack operators along a dimension. Each input must be the same rank, and the returned operator has a rank increase of one where the new dimension reflects the stacked operators.

template<typename ...Ts>
__MATX_INLINE__ __MATX_HOST__ auto matx::stack(int axis, Ts... ts)#

StackOp multiple operators along a dimension.

Template Parameters:

Ts – operator types

Parameters:
  • axis – dimension to insert new dimension

  • ts – operators

Returns:

stacked operator

Examples#

// Stack 1D operators "t1a", "t1b", and "t1c" together along the first dimension
auto op = stack(0, t1a, t1b, t1c);