|
inlineconstexpr |
Computes the maximum of the absolute value of its arguments.
Defined in Header
Parameters
Return value
The elementwise element of greatest absolute value is returned.
For instance for two elements:
|x| > |y|
, x
is returned.|x| < |y|
, y
is returned.max(x, y)
is returned.For n parameters the result is computed as if this scheme was recursively used.
Nan
, the corresponding output element is system-dependent.Masked Call
The call eve::maxmag[mask](x, ...)
provides a masked version of maxmag
which is equivalent to if_else(mask, maxmag(x, ...), x)
Example
The behaviour of d(eve::maxmag)(x, y) (where d is one of these two decorators is identical except that if |x| == |y|
, d(max)
is used.
Example