|
inlineconstexpr |
Computes the manhattan norm ( \(l_1\)) of its arguments.
Defined in Header
Parameters
Return value
The value of the sum of the absolute value of the arguments is returned.
Masked Call
The call eve::manhattan[mask](x, ...)
provides a masked version of manhattan
which is equivalent to if_else(mask, eve::manhattan(x, ...), x)
Example
The call eve::pedantic(eve::manhattan)(...)
computes a pedantic version of eve::manhattan
. returning \(\infty\) as soon as one of its parameter is infinite, regardless of possible Nan
values.
Example