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

Method min_max_whole

src/backed/statistics/mod.rs:156–167  ·  view source on GitHub ↗
(&self, direction: &Direction)

Source from the content-addressed store, hash-verified

154
155impl<B: Backend> ComputeMinMax for ArrayElem<B> {
156 fn min_max_whole<T>(&self, direction: &Direction) -> anyhow::Result<(Vec<T>, Vec<T>)>
157 where
158 T: num_traits::NumCast + Copy + PartialOrd + NumericOps + Send + Sync,
159 {
160 let x_data = self.get::<ArrayData>()?.expect("X matrix not found!");
161 match direction {
162 Direction::COLUMN => {
163 match_array_data_apply_function!(x_data, min_max_col)
164 }
165 Direction::ROW => match_array_data_apply_function!(x_data, min_max_row),
166 }
167 }
168
169 fn min_max_chunk<T>(
170 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected