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

pub trait ArrayAdapter<N: Copy> {
    pub fn len(&self) -> usize;
pub fn is_square(&self) -> bool;
pub fn get(&self, x: usize, y: usize) -> N; }

Adapter trait for accessing different types of arrays

Required methods

pub fn len(&self) -> usize[src]

Get the length of an array structure

pub fn is_square(&self) -> bool[src]

Verify that it is a square matrix

pub fn get(&self, x: usize, y: usize) -> N[src]

Get the contents at cell x,y

Loading content...

Implementations on Foreign Types

impl<N: Copy> ArrayAdapter<N> for Array2<N>[src]

Adapter trait for using ndarray::Array2

Loading content...

Implementors

impl<N: Copy + Zero> ArrayAdapter<N> for LowerTriangle<N>[src]

Adapter implementation for LowerTriangle

Loading content...