tatami
C++ API for different matrix representations
|
Delayed scalar substitution. More...
#include <substitute_helpers.hpp>
Public Member Functions | |
DelayedUnaryIsometricSubstituteScalar (Value_ compared, Value_ substitute) | |
Delayed scalar substitution.
This class compares each element of a Matrix
to a scalar; when this comparison is true, it replaces the matrix element with another scalar value. It should be used as the Operation_
in the DelayedUnaryIsometricOperation
class, and only when InputValue_ == OutputValue_
.
op_ | The comparison operation. |
Value_ | Type of the matrix value. |
|
inline |
compared | Scalar to be compared to the matrix values. The matrix value is assumed to be on the left hand side of the comparison, while compared is on the right. |
substitute | Scalar to substitute into the matrix for every element where the comparison to compared is true. |