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

Method nonzero_whole_masked

src/memory/statistics/mod.rs:64–82  ·  view source on GitHub ↗
(
        &self,
        direction: &Direction,
        mask: &[bool],
    )

Source from the content-addressed store, hash-verified

62 }
63
64 fn nonzero_whole_masked<T>(
65 &self,
66 direction: &Direction,
67 mask: &[bool],
68 ) -> anyhow::Result<Vec<T>>
69 where
70 T: PrimInt + Unsigned + Zero + AddAssign + Send + Sync,
71 {
72 let read_guard = self.0.read_inner();
73 let data = read_guard.deref();
74 match direction {
75 Direction::COLUMN => {
76 match_array_data_apply_function!(data, nonzero_col_masked, mask)
77 }
78 Direction::ROW => {
79 match_array_data_apply_function!(data, nonzero_row_masked, mask)
80 }
81 }
82 }
83}
84
85impl ComputeSum for IMArrayElement {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected