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