MCPcopy Index your code
hub / github.com/SingleRust/SingleRust / nonzero_whole

Method nonzero_whole

src/memory/statistics/mod.rs:24–41  ·  view source on GitHub ↗
(&self, direction: &Direction)

Source from the content-addressed store, hash-verified

22
23impl 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

Callers 2

describe_obsFunction · 0.45
describe_varFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected