|
inlineconstexpr |
Computes the maximum of the absolute value of its arguments.
Defined in Header
Parameters
x, xs... : arguments.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::minmag[mask](x, ...) provides a masked version of minmag which is equivalent to if_else(mask, minmag(x, ...), x)
Example
The behaviour of d(eve::minmag)(x, y) (where d is one of these two decorators is identical except that if |x| == |y|, d(max) is used.
Example