1#ifndef TATAMI_DELAYED_UNARY_ISOMETRIC_OP_HELPER_INTERFACE_H
2#define TATAMI_DELAYED_UNARY_ISOMETRIC_OP_HELPER_INTERFACE_H
47 template<
typename Index_,
typename InputValue_,
typename OutputValue_>
49 [[maybe_unused]]
bool row,
50 [[maybe_unused]] Index_ i,
51 [[maybe_unused]] Index_ start,
53 [[maybe_unused]]
const InputValue_* input,
56 std::fill_n(output, length, 0);
81 template<
typename Index_,
typename InputValue_,
typename OutputValue_>
83 [[maybe_unused]]
bool row,
84 [[maybe_unused]] Index_ i,
85 const std::vector<Index_>& indices,
86 [[maybe_unused]]
const InputValue_* input,
89 std::fill_n(output, indices.size(), 0);
137 template<
typename Index_,
typename InputValue_,
typename OutputValue_>
139 [[maybe_unused]]
bool row,
140 [[maybe_unused]] Index_ i,
141 [[maybe_unused]] Index_ start,
143 [[maybe_unused]]
const InputValue_* input,
144 OutputValue_* output)
146 std::fill_n(output, length, 0);
172 template<
typename Index_,
typename InputValue_,
typename OutputValue_>
174 [[maybe_unused]]
bool row,
175 [[maybe_unused]] Index_ i,
176 const std::vector<Index_>& indices,
177 [[maybe_unused]]
const InputValue_* input,
178 OutputValue_* output)
180 std::fill_n(output, indices.size(), 0);
214 template<
typename Index_,
typename InputValue_,
typename OutputValue_>
216 [[maybe_unused]]
bool row,
217 [[maybe_unused]] Index_ i,
219 [[maybe_unused]]
const InputValue_* input_value,
220 [[maybe_unused]]
const Index_* index,
221 OutputValue_* output_value)
223 std::fill_n(output_value, num, 0);
241 template<
typename OutputValue_,
typename InputValue_,
typename Index_>
242 OutputValue_
fill([[maybe_unused]]
bool row, [[maybe_unused]] Index_ i)
const {
Store information about extracted sparse elements.
Advanced mock operation for DelayedUnaryIsometricOperation.
Definition mock_helpers.hpp:111
bool non_zero_depends_on_row() const
Definition mock_helpers.hpp:285
void dense(bool row, Index_ i, Index_ start, Index_ length, const InputValue_ *input, OutputValue_ *output) const
Definition mock_helpers.hpp:138
static constexpr bool is_basic
Definition mock_helpers.hpp:250
OutputValue_ fill(bool row, Index_ i) const
Definition mock_helpers.hpp:242
bool zero_depends_on_column() const
Definition mock_helpers.hpp:276
bool is_sparse() const
Definition mock_helpers.hpp:302
bool non_zero_depends_on_column() const
Definition mock_helpers.hpp:294
void dense(bool row, Index_ i, const std::vector< Index_ > &indices, const InputValue_ *input, OutputValue_ *output) const
Definition mock_helpers.hpp:173
void sparse(bool row, Index_ i, Index_ num, const InputValue_ *input_value, const Index_ *index, OutputValue_ *output_value) const
Definition mock_helpers.hpp:215
bool zero_depends_on_row() const
Definition mock_helpers.hpp:262
Basic mock operation for a DelayedUnaryIsometricOperation.
Definition mock_helpers.hpp:22
void dense(bool row, Index_ i, const std::vector< Index_ > &indices, const InputValue_ *input, OutputValue_ *output) const
Definition mock_helpers.hpp:82
void dense(bool row, Index_ i, Index_ start, Index_ length, const InputValue_ *input, OutputValue_ *output) const
Definition mock_helpers.hpp:48
static constexpr bool is_basic
Definition mock_helpers.hpp:96
Flexible representations for matrix data.
Definition Extractor.hpp:15