|
inlineconstexpr |
Computes the maximum of the absolute value of its arguments.
Defined in Header
Parameters
Return value
The value of the maximum of the absolute value of the arguments is returned.
Nan
, the corresponding output element is system-dependent.Masked Call
The call eve::maxabs[mask](x, ...)
provides a masked version of maxabs
which is equivalent to if_else(mask, maxabs(x, ...), x)
Example
pedantic(maxabs)(x,args,...)
ensures the conformity to the standard behaviour, that is for two parameters (on an elementwise basis) to be semanticaly equivalent to: (|x| < |y|) ? |y| : |x|
and this behaviour is also ensured on n parameters calls as if this scheme was recursively used.numeric(maxabs)(x,args,...)
ensures that if any element of the inputs is not a Nan
, the corresponding output element will not be a Nan
.Example