tatami
C++ API for different matrix representations
|
Delayed unary isometric scalar arithmetic. More...
#include <arithmetic_helpers.hpp>
Public Member Functions | |
DelayedUnaryIsometricArithmeticScalar (Scalar_ scalar) | |
Delayed unary isometric scalar arithmetic.
This class applies the specified arithmetic operation to each element of a Matrix
where the other operand is a scalar. It should be used as the Operation_
in the DelayedUnaryIsometricOperation
class. It may be used regardless of whether InputValue_
and OutputValue_
are equal (or not).
op_ | The arithmetic operation. |
right_ | Whether the scalar should be on the right hand side of the arithmetic operation. Ignored for commutative operations, e.g., ADD and MULTIPLY . |
InputValue_ | Type of the matrix value to use in the operation. |
Scalar_ | Type of the scalar value. |
|
inline |
scalar | Scalar value to be used in the operation. |