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
fn rows(&self) -> c_int
Returns the number of rows.
fn cols(&self) -> c_int
Returns the number of columns.
fn as_ptr(&self) -> *const T
An unsafe pointer to a contiguous block of memory.
fn as_mut_ptr(&mut self) -> *mut T
An unsafe pointer to a contiguous block of memory.
Provided Methods
fn lead_dim(&self) -> c_int
The leading dimension of the matrix. Defaults to cols
for RowMajor
order and 'rows' for ColMajor
order.
fn order(&self) -> 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]
T: Default + Copy + Gemv,
type Output = Vec<T>
The resulting type after applying the *
operator
fn mul(self, x: &Vector<T>) -> Vec<T>
The method for the *
operator
impl<'a, T> Add for &'a Matrix<T> where
T: Axpy + Copy + Default,
[src]
T: Axpy + Copy + Default,
type Output = Mat<T>
The resulting type after applying the +
operator
fn add(self, b: &Matrix<T>) -> Mat<T>
The method for the +
operator
impl<'a, T> Mul<T> for &'a Matrix<T> where
T: Sized + Copy + Scal,
[src]
T: Sized + Copy + Scal,
type Output = Mat<T>
The resulting type after applying the *
operator
fn mul(self, alpha: T) -> Mat<T>
The method for the *
operator
impl<'a, T> Mul<&'a Matrix<T>> for &'a Matrix<T> where
T: Default + Gemm,
[src]
T: Default + Gemm,
type Output = Mat<T>
The resulting type after applying the *
operator
fn mul(self, b: &Matrix<T>) -> Mat<T>
The method for the *
operator
impl<'a, T> Mul<Trans<&'a Matrix<T>>> for &'a Matrix<T> where
T: Default + Gemm,
[src]
T: Default + Gemm,
type Output = Mat<T>
The resulting type after applying the *
operator
fn mul(self, rhs: Trans<&Matrix<T>>) -> Mat<T>
The method for the *
operator
impl<'a, T> BitXor<Marker> for &'a Matrix<T>
[src]
type Output = Trans<&'a Matrix<T>>
The resulting type after applying the ^
operator
fn bitxor(self, m: Marker) -> Trans<&'a Matrix<T>>
The method for the ^
operator
Implementors
impl<T> Matrix<T> for Mat<T>