cross

Contents

cross#

Cross product of two operators with last dimension 2 or 3.

Inputs A and B may be higher rank than 1, in which case batching will occur on all dimensions besides the last dimension.

template<typename OpA, typename OpB>
__MATX_INLINE__ auto matx::cross(const OpA &A, const OpB &B)#

Evaluate a cross product.

Template Parameters:
  • OpA – Type of input tensor 1

  • OpB – Type of input tensor 2

Parameters:
  • A – Input tensor 1

  • B – Input tensor 2

Returns:

cross operator

Examples#

(out = cross(a, b)).run(exec);