MCPcopy Create free account
hub / github.com/Axect/Peroxide / Algorithm

Interface Algorithm

src/traits/general.rs:2–12  ·  view source on GitHub ↗

Some algorithms for Vector

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Implementers 2

vector.rssrc/structure/vector.rs
vector.rssrc/complex/vector.rs

Calls

no outgoing calls

Tested by

no test coverage detected