|
| | DelayedLogNormalizeHelper (SizeFactors_ size_factors, OutputValue_ log_base, OutputValue_ pseudo_count) |
| |
| std::optional< Index_ > | nrow () const |
| |
| std::optional< Index_ > | ncol () const |
| |
| bool | zero_depends_on_row () const |
| |
| bool | zero_depends_on_column () const |
| |
| bool | non_zero_depends_on_row () const |
| |
| bool | non_zero_depends_on_column () const |
| |
| void | dense (const bool row, const Index_ idx, const Index_ start, const Index_ length, const InputValue_ *input, OutputValue_ *const output) const |
| |
| void | dense (const bool row, const Index_ idx, const std::vector< Index_ > &indices, const InputValue_ *input, OutputValue_ *const output) const |
| |
| bool | is_sparse () const |
| |
| void | sparse (const bool row, const Index_ idx, const Index_ number, const InputValue_ *input_value, const Index_ *const index, OutputValue_ *const output_value) const |
| |
| OutputValue_ | fill (const bool row, const Index_ idx) const |
| |
template<typename OutputValue_, typename InputValue_, typename Index_, typename SizeFactors_>
class scran_norm::DelayedLogNormalizeHelper< OutputValue_, InputValue_, Index_, SizeFactors_ >
Helper for delayed log-normalization.
This is a helper subclass that performs scaling normalization and log-transformation for each cell in tatami::DelayedUnaryIsometricOperation. It should be constructed with normalize_counts() and is equivalent to chaining tatami::DelayedUnaryIsometricDivideVectorHelper (for the scaling by size factors), with tatami::DelayedUnaryIsometricLog1pHelper and tatami::DelayedUnaryIsometricDivideScalarHelper (for log-transformation with a pseudo-count of 1 and an arbitrary base) or tatami::DelayedUnaryIsometricAddScalarHelper and tatami::DelayedUnaryIsometricCustomLogHelper (for log-transformation with a non-unity pseudo-count).
- Template Parameters
-
| OutputValue_ | Type of the result of the operation. |
| InputValue_ | Type of the matrix value used in the operation. |
| Index_ | Integer type for the row/column indices. |
| SizeFactors_ | Container for the size factors. This should support [], size(), begin() and end(). |