tatami
C++ API for different matrix representations
|
Delayed vector comparisons. More...
#include <compare_helpers.hpp>
Public Member Functions | |
DelayedUnaryIsometricCompareVector (Vector_ vector, bool by_row) | |
Delayed vector comparisons.
This class compares each element of a Matrix
to a row/column-specific value. 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 comparison operation. |
InputValue_ | Type of the matrix value to use in the comparison. |
Vector_ | Type of the vector. |
|
inline |
vector | Vector to use in the comparison with the matrix values. This should be of length equal to the number of rows if by_row = true , otherwise it should be of length equal to the number of columns. The matrix value from each row/column is assumed to be on the left hand side of the comparison, while the corresponding value of vector is on the right. |
by_row | Whether vector corresponds to the rows. If true, each element of the vector is assumed to correspond to a row, and that element is used as an operand with all entries in the same row of the matrix. If false, each element of the vector is assumed to correspond to a column instead. |