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

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

Methods

impl<T> Mat<T>

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>

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

Trait Implementations

impl<T> Index<usize> for Mat<T>

type Output = [T]

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

impl<T: Display> Display for Mat<T>

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

impl<T> Matrix<T> for Mat<T>

fn rows(&self) -> i32

fn cols(&self) -> i32

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

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

fn lead_dim(&self) -> i32

fn order(&self) -> Order

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

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

Derived Implementations

impl<T: PartialEq> PartialEq for Mat<T>

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

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

impl<T: Debug> Debug for Mat<T>

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