[][src]Struct mrslac::matrix::dense_row_major::DenseRowMajor

pub struct DenseRowMajor { /* fields omitted */ }

A row-major dense matrix data structure

Implementations

impl DenseRowMajor[src]

pub fn new(row: usize, col: usize) -> DenseRowMajor[src]

creates a new matrix

pub fn resize(&mut self, row: usize, col: usize)[src]

resizes the matrix

Trait Implementations

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 BasicWriteableMatrix for DenseRowMajor[src]

fn set_element(&mut self, i: usize, j: usize, value: f32)[src]

sets the (i,j)-th element of the block row vector

fn set_zero(&mut self)[src]

sets all elements to zero

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.