stdd

stdd#

Compute the standard deviation of a tensor. The name stdd is used to avoid confliction with the use of the C++ standard library

template<typename InType, int D>
__MATX_INLINE__ auto matx::stdd(const InType &in, const int (&dims)[D], int ddof = 1)#

Compute a standard deviation reduction

Computes the standard deviation of the input according to the output tensor rank and size along an axis

Template Parameters:
  • InType – Input data type

  • D – Num of dimensions to reduce over

Parameters:
  • in – Input data to reduce

  • dims – Array containing dimensions to reduce over

  • ddof – ddof – Delta Degrees Of Freedom used in the divisor of the result as N - ddof. Defaults to 1 to give an unbiased estimate

Returns:

Operator with reduced values of standard deviation computed

template<typename InType>
__MATX_INLINE__ auto matx::stdd(const InType &in, int ddof = 1)#

Compute a standard deviation reduction

Computes the standard deviation of the input according to the output tensor rank and size

Template Parameters:

InType – Input data type

Parameters:
  • in – Input data to reduce

  • ddof – ddof – Delta Degrees Of Freedom used in the divisor of the result as N - ddof. Defaults to 1 to give an unbiased estimate

Returns:

Operator with reduced values of standard deviation computed

Examples#

(t0 = stdd(t1)).run(exec);