| 53 | } |
| 54 | |
| 55 | pub trait ComputeMinMax { |
| 56 | fn min_max_whole<T>(&self, direction: &Direction) -> anyhow::Result<(Vec<T>, Vec<T>)> |
| 57 | where |
| 58 | T: NumCast + Copy + PartialOrd + NumericOps + Send + Sync; |
| 59 | |
| 60 | fn min_max_chunk<T>( |
| 61 | &self, |
| 62 | direction: &Direction, |
| 63 | reference: (&mut Vec<T>, &mut Vec<T>), |
| 64 | ) -> anyhow::Result<()> |
| 65 | where |
| 66 | T: NumCast + Copy + PartialOrd + NumericOps + Send + Sync; |
| 67 | } |
| 68 | |
| 69 | pub trait ComputeNTop { |
| 70 | fn n_top_whole<T>(&self, direction: &Direction, n: usize) -> anyhow::Result<Vec<T>> |