tatami
C++ API for different matrix representations
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tatami::DelayedUnaryIsometricArithmeticScalar< op_, right_, InputValue_, Scalar_ > Class Template Reference

Delayed unary isometric scalar arithmetic. More...

#include <arithmetic_helpers.hpp>

Public Member Functions

 DelayedUnaryIsometricArithmeticScalar (Scalar_ scalar)
 

Detailed Description

template<ArithmeticOperation op_, bool right_, typename InputValue_, typename Scalar_>
class tatami::DelayedUnaryIsometricArithmeticScalar< op_, right_, InputValue_, 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).

Template Parameters
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.

Constructor & Destructor Documentation

◆ DelayedUnaryIsometricArithmeticScalar()

tatami::DelayedUnaryIsometricArithmeticScalar< op_, right_, InputValue_, Scalar_ >::DelayedUnaryIsometricArithmeticScalar ( Scalar_  scalar)
inline
Parameters
scalarScalar value to be used in the operation.

The documentation for this class was generated from the following file: