Struct rblas::math::mat::Mat [] [src]

pub struct Mat<T> {
    // some fields omitted
}

Methods

impl<T> Mat<T>
[src]

fn new(n: usize, m: usize) -> Mat<T>

fn rows(&self) -> usize

fn cols(&self) -> usize

unsafe fn set_rows(&mut self, n: usize)

unsafe fn set_cols(&mut self, n: usize)

unsafe fn push(&mut self, val: T)

impl<T: Clone> Mat<T>
[src]

fn fill(value: T, n: usize, m: usize) -> Mat<T>

Trait Implementations

impl<T: PartialEq> PartialEq for Mat<T>
[src]

fn eq(&self, __arg_0: &Mat<T>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Mat<T>) -> bool

This method tests for !=.

impl<T: Debug> Debug for Mat<T>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<T> Index<usize> for Mat<T>
[src]

type Output = [T]

The returned type after indexing

fn index<'a>(&'a self, index: usize) -> &'a [T]

The method for the indexing (Foo[Bar]) operation

impl<T: Display> Display for Mat<T>
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<T> Matrix<T> for Mat<T>
[src]

fn rows(&self) -> i32

Returns the number of rows.

fn cols(&self) -> i32

Returns the number of columns.

unsafe fn as_ptr(&self) -> *const T

An unsafe pointer to a contiguous block of memory.

unsafe fn as_mut_ptr(&mut self) -> *mut T

An unsafe pointer to a contiguous block of memory.

fn lead_dim(&self) -> i32

The leading dimension of the matrix. Defaults to cols for RowMajor order and 'rows' for ColMajor order. Read more

fn order(&self) -> Order

The order of the matrix. Defaults to RowMajor.

impl<'a, T> From<&'a Matrix<T>> for Mat<T> where T: Copy
[src]

fn from(a: &Matrix<T>) -> Mat<T>

Performs the conversion.