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

Method min_max_whole

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

Source from the content-addressed store, hash-verified

214
215impl ComputeMinMax for IMArrayElement {
216 fn min_max_whole<T>(&self, direction: &Direction) -> anyhow::Result<(Vec<T>, Vec<T>)>
217 where
218 T: num_traits::NumCast + Copy + PartialOrd + NumericOps + Send + Sync,
219 {
220 let read_guard = self.0.read_inner();
221
222 let data = read_guard.deref();
223
224 match direction {
225 Direction::COLUMN => {
226 match_array_data_apply_function!(data, min_max_col)
227 }
228 Direction::ROW => match_array_data_apply_function!(data, min_max_row),
229 }
230 }
231
232 fn min_max_chunk<T>(
233 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected