MCPcopy Create free account
hub / github.com/SingleRust/SingleRust / nonzero_chunk

Method nonzero_chunk

src/backed/statistics/mod.rs:27–48  ·  view source on GitHub ↗
(&self, direction: &Direction, reference: &mut [T])

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected