[][src]Trait mrslac::matrix::BasicReadableMatrix

pub trait BasicReadableMatrix {
    fn get_rows(&self) -> usize;
fn get_columns(&self) -> usize;
fn get_element(&self, i: usize, j: usize) -> f32; }

Required methods

fn get_rows(&self) -> usize

returns the number of rows

fn get_columns(&self) -> usize

returns the number of columns

fn get_element(&self, i: usize, j: usize) -> f32

returns the (i,j)-th element of the matrix

Loading content...

Implementors

impl BasicReadableMatrix for DenseRowMajor[src]

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

returns the matrix' rows

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

returns the matrix' columns

fn get_element(&self, i: usize, j: usize) -> f32[src]

returns the (i,j)-th element of the block matrix

impl BasicReadableMatrix for SparseCRS[src]

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

returns the number of rows in the matrix

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

returns the number of columns in the matrix

fn get_element(&self, i: usize, j: usize) -> f32[src]

returns the (i,j)-th element of the matrix

impl BasicReadableMatrix for SparseDOK[src]

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

returns the number of rows in the matrix

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

returns the number of columns in the matrix

fn get_element(&self, i: usize, j: usize) -> f32[src]

returns the (i,j)-th element of the matrix

Loading content...