rcollapse

rcollapse#

Collapse the right-most dimensions

template<int DIM, typename T1>
auto __MATX_INLINE__ matx::rcollapse(const T1 &a)#

rcollapse operator

The rcollapse operator takes a tensor and collapses the right most dimensions into a single dimension.

Template Parameters:
  • DIM – The number of input dimensions to collapse

  • T1 – Operator type

Parameters:

a – The parameter being collapsed

Returns:

Operator with collapsed input

Examples#

// Collapse two right-most dimensions together
auto op = rcollapse<2>(tiv);