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

Method nonzero_chunk

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

Source from the content-addressed store, hash-verified

41 }
42
43 fn nonzero_chunk<T>(&self, direction: &Direction, reference: &mut [T]) -> anyhow::Result<()>
44 where
45 T: num_traits::PrimInt
46 + num_traits::Unsigned
47 + num_traits::Zero
48 + std::ops::AddAssign
49 + Send
50 + Sync,
51 {
52 let read_guard = self.0.read_inner();
53 let data = read_guard.deref();
54 match direction {
55 Direction::COLUMN => {
56 match_array_data_apply_function!(data, nonzero_col_chunk, reference)
57 }
58 Direction::ROW => {
59 match_array_data_apply_function!(data, nonzero_row_chunk, reference)
60 }
61 }
62 }
63
64 fn nonzero_whole_masked<T>(
65 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected