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

Method variance_chunk

src/memory/statistics/mod.rs:174–212  ·  view source on GitHub ↗
(&self, direction: &Direction, reference: &mut [T])

Source from the content-addressed store, hash-verified

172 }
173
174 fn variance_chunk<I, T>(&self, direction: &Direction, reference: &mut [T]) -> anyhow::Result<()>
175 where
176 I: num_traits::PrimInt
177 + num_traits::Unsigned
178 + num_traits::Zero
179 + std::ops::AddAssign
180 + Into<T>
181 + Send
182 + Sync,
183 T: num_traits::Float
184 + num_traits::NumCast
185 + std::ops::AddAssign
186 + std::iter::Sum
187 + Send
188 + Sync,
189 {
190 let read_guard = self.0.read_inner();
191
192 let data = read_guard.deref();
193
194 match direction {
195 Direction::COLUMN => {
196 match_array_data_apply_function_with_generics!(
197 data,
198 var_col_chunk,
199 [I, T],
200 reference
201 )
202 }
203 Direction::ROW => {
204 match_array_data_apply_function_with_generics!(
205 data,
206 var_row_chunk,
207 [I, T],
208 reference
209 )
210 }
211 }
212 }
213}
214
215impl ComputeMinMax for IMArrayElement {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected