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; }

Adapter trait for accessing different types of arrays

Required methods

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

Get the length of an array structure

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

Verify that it is a square matrix

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

Get the contents at cell x,y

Loading content...

Implementations on Foreign Types

impl<N> ArrayAdapter<<N as RawData>::Elem> for ArrayBase<N, Ix2> where
    N: Data,
    N::Elem: Copy
[src]

Adapter trait for using ndarray::Array2 and similar

Loading content...

Implementors

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

Adapter implementation for LowerTriangle

Loading content...