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

Delayed unary isometric vector boolean operations. More...

#include <boolean_helpers.hpp>

Public Member Functions

 DelayedUnaryIsometricBooleanVector (Vector_ vector, bool by_row)
 

Detailed Description

template<BooleanOperation op_, typename Vector_>
class tatami::DelayedUnaryIsometricBooleanVector< op_, Vector_ >

Delayed unary isometric vector boolean operations.

This class applies the specified boolean operation to each element of a Matrix where the other operand is a row/column-specific value. This 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 boolean operation.
Vector_Type of the vector.

Constructor & Destructor Documentation

◆ DelayedUnaryIsometricBooleanVector()

tatami::DelayedUnaryIsometricBooleanVector< op_, Vector_ >::DelayedUnaryIsometricBooleanVector ( Vector_  vector,
bool  by_row 
)
inline
Parameters
vectorVector of values to use in the operation. 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.
by_rowWhether 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.

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