Trait rblas::matrix::Matrix [] [src]

pub trait Matrix<T> {
    fn rows(&self) -> c_int;
    fn cols(&self) -> c_int;
    fn as_ptr(&self) -> *const T;
    fn as_mut_ptr(&mut self) -> *mut T;

    fn lead_dim(&self) -> c_int { ... }
    fn order(&self) -> Order { ... }
}

Methods that allow a type to be used in BLAS functions as a matrix.

Required Methods

Returns the number of rows.

Returns the number of columns.

An unsafe pointer to a contiguous block of memory.

An unsafe pointer to a contiguous block of memory.

Provided Methods

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

The order of the matrix. Defaults to RowMajor.

Trait Implementations

impl<'a, T> Mul<&'a Vector<T>> for &'a Matrix<T> where
    T: Default + Copy + Gemv
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, T> Add for &'a Matrix<T> where
    T: Axpy + Copy + Default
[src]

The resulting type after applying the + operator

The method for the + operator

impl<'a, T> Mul<T> for &'a Matrix<T> where
    T: Sized + Copy + Scal
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, T> Mul<&'a Matrix<T>> for &'a Matrix<T> where
    T: Default + Gemm
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, T> Mul<Trans<&'a Matrix<T>>> for &'a Matrix<T> where
    T: Default + Gemm
[src]

The resulting type after applying the * operator

The method for the * operator

impl<'a, T> BitXor<Marker> for &'a Matrix<T>
[src]

The resulting type after applying the ^ operator

The method for the ^ operator

Implementors