(&self, direction: &Direction)
| 22 | |
| 23 | impl ComputeNonZero for IMArrayElement { |
| 24 | fn nonzero_whole<T>(&self, direction: &Direction) -> anyhow::Result<Vec<T>> |
| 25 | where |
| 26 | T: num_traits::PrimInt |
| 27 | + num_traits::Unsigned |
| 28 | + num_traits::Zero |
| 29 | + std::ops::AddAssign |
| 30 | + Send |
| 31 | + Sync, |
| 32 | { |
| 33 | let read_guard = self.0.read_inner(); |
| 34 | let data = read_guard.deref(); |
| 35 | match direction { |
| 36 | Direction::COLUMN => { |
| 37 | match_array_data_apply_function!(data, nonzero_col) |
| 38 | } |
| 39 | Direction::ROW => match_array_data_apply_function!(data, nonzero_row), |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | fn nonzero_chunk<T>(&self, direction: &Direction, reference: &mut [T]) -> anyhow::Result<()> |
| 44 | where |
no outgoing calls
no test coverage detected