lcollapse

lcollapse#

Collapse the left-most dimensions

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

lcollapse operator

The lcollapse operator takes a tensor and collapses the left most dimensions into a single dimension.

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

  • T1 – Operator type

Parameters:

a – The operator being collapsed

Returns:

Operator with collapsed input

Examples#

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