|
inlineconstexpr |
Computes the results of a choice under condition.
Defined in Header
Parameters
x: conditiony, z: choice arguments.Return value
The call if_else(x, y, z) performs elementwise a choice between the elements of y and z according to the truth value of the elements of x.
Possible optimizations
The following calls where x, y and z are values can be optimized:
if_else(x, y, allbits< T >()) writing: if_else(x, y, eve::allbits_)if_else(x, y, one< T >() ) writing: if_else(x, y, eve::one_ )if_else(x, y, mone< T >() ) writing: if_else(x, y, eve::mone_ )if_else(x, y, zero< T >() ) writing: if_else(x, y, eve::zero_ )if_else(x, allbits< T >(), z) writing: if_else(x, eve::allbits_, z)if_else(x, one< T >(), z ) writing: if_else(x, eve::one_, z )if_else(x, mone< T >(), z ) writing: if_else(x, eve::mone_, z )if_else(x, zero< T >(), z ) writing: if_else(x, eve::zero_, z )