abs#

Absolute value for real numbers, or complex magnitude for complex numbers

Op matx::abs(Op t)#

Compute absolute value of every element in the tensor. For complex numbers this returns the magnitude, or sqrt(x^2+y^2)

Parameters:

t – Tensor or operator input

Examples#

(tdd0 = abs(tiv0)).run(exec);