Struct kmedoids::arrayadapter::LowerTriangle [−][src]
Expand description
Lower triangular matrix in serial form (without diagonal)
Example
let data = kmedoids::arrayadapter::LowerTriangle { n: 4, data: vec![1, 2, 3, 4, 5, 6] };
let mut meds = vec![0, 1];
let (loss, numswap, numiter, assignment) = kmedoids::fasterpam(&data, &mut meds, 10);
println!("Loss is {}", loss);
Fields
n: usize
Matrix size
data: Vec<N>
Trait Implementations
Adapter implementation for LowerTriangle
Auto Trait Implementations
impl<N> RefUnwindSafe for LowerTriangle<N> where
N: RefUnwindSafe,
impl<N> Send for LowerTriangle<N> where
N: Send,
impl<N> Sync for LowerTriangle<N> where
N: Sync,
impl<N> Unpin for LowerTriangle<N> where
N: Unpin,
impl<N> UnwindSafe for LowerTriangle<N> where
N: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more