(&self, direction: &Direction)
| 84 | |
| 85 | impl ComputeSum for IMArrayElement { |
| 86 | fn sum_whole<T>(&self, direction: &Direction) -> anyhow::Result<Vec<T>> |
| 87 | where |
| 88 | T: num_traits::Float |
| 89 | + num_traits::NumCast |
| 90 | + std::ops::AddAssign |
| 91 | + std::iter::Sum |
| 92 | + Send |
| 93 | + Sync, |
| 94 | { |
| 95 | let read_guard = self.0.read_inner(); |
| 96 | let data = read_guard.deref(); |
| 97 | match direction { |
| 98 | Direction::COLUMN => { |
| 99 | match_array_data_apply_function!(data, sum_col) |
| 100 | } |
| 101 | Direction::ROW => match_array_data_apply_function!(data, sum_row), |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | fn sum_chunk<T>(&self, direction: &Direction, reference: &mut [T]) -> anyhow::Result<()> |
| 106 | where |
no outgoing calls
no test coverage detected