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

Delayed special value substitution. More...

#include <substitute_helpers.hpp>

Public Member Functions

 DelayedUnaryIsometricSpecialSubstitute (Value_ substitute)
 

Detailed Description

template<SpecialCompareOperation op_, bool pass_, typename Value_>
class tatami::DelayedUnaryIsometricSpecialSubstitute< op_, pass_, Value_ >

Delayed special value substitution.

This class checks whether each element of a Matrix is an IEEE special value, and if so, replaces it with another scalar value. It should be used as the Operation_ in the DelayedUnaryIsometricOperation class, and only when InputValue_ == OutputValue_.

Template Parameters
op_The special comparison operation.
pass_Whether to perform the substitution if the special comparison is true. Otherwise the substitution is only performed if the comparison is false.
Value_Type of the matrix value.

Constructor & Destructor Documentation

◆ DelayedUnaryIsometricSpecialSubstitute()

template<SpecialCompareOperation op_, bool pass_, typename Value_ >
tatami::DelayedUnaryIsometricSpecialSubstitute< op_, pass_, Value_ >::DelayedUnaryIsometricSpecialSubstitute ( Value_  substitute)
inline
Parameters
substituteScalar to substitute into the matrix for every element where the special comparison is true (if pass_ = true) or false (otherwise).

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