tatami
C++ API for different matrix representations
|
Delayed special value substitution. More...
#include <substitute_helpers.hpp>
Public Member Functions | |
DelayedUnaryIsometricSpecialSubstitute (Value_ substitute) | |
Delayed special value substitution.
This class checks whether each element of a Matrix
is an IEEE special value, and if so, replaces it with another scalar value. It should be used as the Operation_
in the DelayedUnaryIsometricOperation
class, and only when InputValue_ == OutputValue_
.
op_ | The special comparison operation. |
pass_ | Whether to perform the substitution if the special comparison is true. Otherwise the substitution is only performed if the comparison is false. |
Value_ | Type of the matrix value. |
|
inline |
substitute | Scalar to substitute into the matrix for every element where the special comparison is true (if pass_ = true ) or false (otherwise). |