[][src]Trait rust_blas::matrix::Matrix

pub trait Matrix<T> {
    fn rows(&self) -> u32;
fn cols(&self) -> u32;
fn as_ptr(&self) -> *const T;
fn as_mut_ptr(&mut self) -> *mut T; fn lead_dim(&self) -> u32 { ... }
fn order(&self) -> Order { ... } }

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

Required methods

fn rows(&self) -> u32

Returns the number of rows.

fn cols(&self) -> u32

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.

Loading content...

Provided methods

fn lead_dim(&self) -> u32

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.

Loading content...

Trait Implementations

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

type Output = Mat<T>

The resulting type after applying the + operator.

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

type Output = Trans<&'a dyn Matrix<T>>

The resulting type after applying the ^ operator.

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

impl<'a> Mul<&'a (dyn Matrix<Complex<f32>> + 'a)> for Complex32[src]

type Output = Mat<Complex32>

The resulting type after applying the * operator.

impl<'a> Mul<&'a (dyn Matrix<Complex<f64>> + 'a)> for Complex64[src]

type Output = Mat<Complex64>

The resulting type after applying the * operator.

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

type Output = Mat<T>

The resulting type after applying the * operator.

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

type Output = Mat<T>

The resulting type after applying the * operator.

impl<'a> Mul<&'a (dyn Matrix<f32> + 'a)> for f32[src]

type Output = Mat<f32>

The resulting type after applying the * operator.

impl<'a> Mul<&'a (dyn Matrix<f64> + 'a)> for f64[src]

type Output = Mat<f64>

The resulting type after applying the * operator.

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

type Output = Vec<T>

The resulting type after applying the * operator.

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

type Output = Mat<T>

The resulting type after applying the * operator.

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

type Output = Mat<T>

The resulting type after applying the * operator.

Implementors

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

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

Loading content...