(&self, direction: &Direction, reference: &mut [T])
| 41 | } |
| 42 | |
| 43 | fn nonzero_chunk<T>(&self, direction: &Direction, reference: &mut [T]) -> anyhow::Result<()> |
| 44 | where |
| 45 | T: num_traits::PrimInt |
| 46 | + num_traits::Unsigned |
| 47 | + num_traits::Zero |
| 48 | + std::ops::AddAssign |
| 49 | + Send |
| 50 | + Sync, |
| 51 | { |
| 52 | let read_guard = self.0.read_inner(); |
| 53 | let data = read_guard.deref(); |
| 54 | match direction { |
| 55 | Direction::COLUMN => { |
| 56 | match_array_data_apply_function!(data, nonzero_col_chunk, reference) |
| 57 | } |
| 58 | Direction::ROW => { |
| 59 | match_array_data_apply_function!(data, nonzero_row_chunk, reference) |
| 60 | } |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | fn nonzero_whole_masked<T>( |
| 65 | &self, |
nothing calls this directly
no outgoing calls
no test coverage detected