1
2
3
4
5
6
7
8
9
10
/// Some algorithms for Vector
pub trait Algorithm {
    fn rank(&self) -> Vec<usize>;
    fn sign(&self) -> f64;
    fn arg_max(&self) -> usize;
    fn arg_min(&self) -> usize;
    fn max(&self) -> f64;
    fn min(&self) -> f64;
    fn swap_with_perm(&mut self, p: &Vec<(usize, usize)>);
}