(&self, direction: &Direction, reference: &mut [T])
| 25 | } |
| 26 | |
| 27 | fn nonzero_chunk<T>(&self, direction: &Direction, reference: &mut [T]) -> anyhow::Result<()> |
| 28 | where |
| 29 | T: PrimInt + Unsigned + Zero + AddAssign + Send + Sync, |
| 30 | { |
| 31 | match direction { |
| 32 | Direction::COLUMN => { |
| 33 | for (chunk, _start, _end) in self.iter::<ArrayData>(1000) { |
| 34 | match_array_data_apply_function!(chunk, nonzero_col_chunk, reference)?; |
| 35 | } |
| 36 | } |
| 37 | Direction::ROW => { |
| 38 | for (chunk, start, end) in self.iter::<ArrayData>(1000) { |
| 39 | match_array_data_apply_function!( |
| 40 | chunk, |
| 41 | nonzero_row_chunk, |
| 42 | &mut reference[start..end] |
| 43 | )?; |
| 44 | } |
| 45 | } |
| 46 | } |
| 47 | Ok(()) |
| 48 | } |
| 49 | |
| 50 | fn nonzero_whole_masked<T>( |
| 51 | &self, |
nothing calls this directly
no outgoing calls
no test coverage detected