(&self, direction: &Direction)
| 12 | |
| 13 | impl<B: Backend> ComputeNonZero for ArrayElem<B> { |
| 14 | fn nonzero_whole<T>(&self, direction: &Direction) -> anyhow::Result<Vec<T>> |
| 15 | where |
| 16 | T: PrimInt + Unsigned + Zero + AddAssign + Send + Sync, |
| 17 | { |
| 18 | let x_data = self.get::<ArrayData>()?.expect("X matrix not found!"); |
| 19 | match direction { |
| 20 | Direction::COLUMN => { |
| 21 | match_array_data_apply_function!(x_data, nonzero_col) |
| 22 | } |
| 23 | Direction::ROW => match_array_data_apply_function!(x_data, nonzero_row), |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | fn nonzero_chunk<T>(&self, direction: &Direction, reference: &mut [T]) -> anyhow::Result<()> |
| 28 | where |
nothing calls this directly
no outgoing calls
no test coverage detected