Trait kmedoids::arrayadapter::ArrayAdapter[][src]

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

Get the length of an array structure

Verify that it is a square matrix

Get the contents at cell x,y

Implementations on Foreign Types

Adapter trait for using ndarray::Array2 and similar

Implementors