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

Method min_max_chunk

src/memory/statistics/mod.rs:232–260  ·  view source on GitHub ↗
(
        &self,
        direction: &Direction,
        reference: (&mut Vec<T>, &mut Vec<T>),
    )

Source from the content-addressed store, hash-verified

230 }
231
232 fn min_max_chunk<T>(
233 &self,
234 direction: &Direction,
235 reference: (&mut Vec<T>, &mut Vec<T>),
236 ) -> anyhow::Result<()>
237 where
238 T: num_traits::NumCast + Copy + PartialOrd + NumericOps + Send + Sync,
239 {
240 let read_guard = self.0.read_inner();
241
242 let data = read_guard.deref();
243
244 match direction {
245 Direction::COLUMN => {
246 match_array_data_apply_function!(
247 data,
248 min_max_col_chunk,
249 (reference.0, reference.1)
250 )
251 }
252 Direction::ROW => {
253 match_array_data_apply_function!(
254 data,
255 min_max_row_chunk,
256 (reference.0, reference.1)
257 )
258 }
259 }
260 }
261}
262
263impl ComputeNTop for IMArrayElement {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected