Trait kmedoids::arrayadapter::ArrayAdapter
source · [−]pub trait ArrayAdapter<N> {
fn len(&self) -> usize;
fn is_square(&self) -> bool;
fn get(&self, x: usize, y: usize) -> N;
}
Expand description
Adapter trait for accessing different types of arrays
Required Methods
Implementations on Foreign Types
sourceimpl<A, N> ArrayAdapter<N> for ArrayBase<A, Ix2> where
A: Data<Elem = N>,
N: Copy,
impl<A, N> ArrayAdapter<N> for ArrayBase<A, Ix2> where
A: Data<Elem = N>,
N: Copy,
Adapter trait for using ndarray::Array2
and similar
Implementors
impl<N: Copy + Zero> ArrayAdapter<N> for LowerTriangle<N>
Adapter implementation for LowerTriangle