1#ifndef TATAMI_ISOMETRIC_BINARY_MOCK_HELPERS_H
2#define TATAMI_ISOMETRIC_BINARY_MOCK_HELPERS_H
51 template<
typename Index_,
typename InputValue_,
typename OutputValue_>
53 [[maybe_unused]]
bool row,
54 [[maybe_unused]] Index_ i,
55 [[maybe_unused]] Index_ start,
57 [[maybe_unused]]
const InputValue_* left_buffer,
58 [[maybe_unused]]
const InputValue_* right_buffer,
59 OutputValue_* output_buffer)
62 std::fill_n(output_buffer, length, 0);
91 template<
typename Index_,
typename InputValue_,
typename OutputValue_>
93 [[maybe_unused]]
bool row,
94 [[maybe_unused]] Index_ i,
95 const std::vector<Index_>& indices,
96 [[maybe_unused]]
const InputValue_* left_buffer,
97 [[maybe_unused]]
const InputValue_* right_buffer,
98 OutputValue_* output_buffer)
100 std::fill_n(output_buffer, indices.size(), 0);
141 template<
typename OutputValue_,
typename InputValue_,
typename Index_>
142 OutputValue_
fill([[maybe_unused]]
bool row, [[maybe_unused]] Index_ i)
const {
228 template<
typename Index_,
typename InputValue_,
typename OutputValue_>
230 [[maybe_unused]]
bool row,
231 [[maybe_unused]] Index_ i,
232 [[maybe_unused]] Index_ start,
234 [[maybe_unused]]
const InputValue_* left_buffer,
235 [[maybe_unused]]
const InputValue_* right_buffer,
236 OutputValue_* output_buffer)
239 std::fill_n(output_buffer, length, 0);
269 template<
typename Index_,
typename InputValue_,
typename OutputValue_>
271 [[maybe_unused]]
bool row,
272 [[maybe_unused]] Index_ i,
273 const std::vector<Index_>& indices,
274 [[maybe_unused]]
const InputValue_* left_buffer,
275 [[maybe_unused]]
const InputValue_* right_buffer,
276 OutputValue_* output_buffer)
278 std::fill_n(output_buffer, indices.size(), 0);
329 template<
typename Index_,
typename InputValue_,
typename OutputValue_>
331 [[maybe_unused]]
bool row,
332 [[maybe_unused]] Index_ i,
335 [[maybe_unused]] OutputValue_* output_value,
336 [[maybe_unused]] Index_* output_index,
337 [[maybe_unused]]
bool report_value,
338 [[maybe_unused]]
bool report_index)
Store information about extracted sparse elements.
Advanced mock operation for DelayedBinaryIsometricOperation.
Definition mock_helpers.hpp:122
void dense(bool row, Index_ i, Index_ start, Index_ length, const InputValue_ *left_buffer, const InputValue_ *right_buffer, OutputValue_ *output_buffer) const
Definition mock_helpers.hpp:229
static constexpr bool is_basic
Definition mock_helpers.hpp:150
void dense(bool row, Index_ i, const std::vector< Index_ > &indices, const InputValue_ *left_buffer, const InputValue_ *right_buffer, OutputValue_ *output_buffer) const
Definition mock_helpers.hpp:270
bool non_zero_depends_on_column() const
Definition mock_helpers.hpp:196
OutputValue_ fill(bool row, Index_ i) const
Definition mock_helpers.hpp:142
bool non_zero_depends_on_row() const
Definition mock_helpers.hpp:186
bool zero_depends_on_column() const
Definition mock_helpers.hpp:176
bool is_sparse() const
Definition mock_helpers.hpp:346
Index_ sparse(bool row, Index_ i, const SparseRange< InputValue_, Index_ > &left, const SparseRange< InputValue_, Index_ > &right, OutputValue_ *output_value, Index_ *output_index, bool report_value, bool report_index) const
Definition mock_helpers.hpp:330
bool zero_depends_on_row() const
Definition mock_helpers.hpp:162
Basic mock operation for DelayedBinaryIsometricOperation.
Definition mock_helpers.hpp:22
void dense(bool row, Index_ i, const std::vector< Index_ > &indices, const InputValue_ *left_buffer, const InputValue_ *right_buffer, OutputValue_ *output_buffer) const
Definition mock_helpers.hpp:92
static constexpr bool is_basic
Definition mock_helpers.hpp:107
void dense(bool row, Index_ i, Index_ start, Index_ length, const InputValue_ *left_buffer, const InputValue_ *right_buffer, OutputValue_ *output_buffer) const
Definition mock_helpers.hpp:52
Flexible representations for matrix data.
Definition Extractor.hpp:15
A range of a sparse vector.
Definition SparseRange.hpp:32