[−][src]Trait rust_blas::matrix::Matrix
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.
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
.
Trait Implementations
impl<'a, T> Add<&'a (dyn Matrix<T> + 'a)> for &'a dyn 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: &dyn Matrix<T>) -> Mat<T>
[src]
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.
fn bitxor(self, m: Marker) -> Trans<&'a dyn Matrix<T>>
[src]
impl<'a, T> From<&'a (dyn Matrix<T> + 'a)> for Mat<T> where
T: Copy,
[src]
T: Copy,
impl<'a> Mul<&'a (dyn Matrix<Complex<f32>> + 'a)> for Complex32
[src]
type Output = Mat<Complex32>
The resulting type after applying the *
operator.
fn mul(self, x: &dyn Matrix<Complex32>) -> Mat<Complex32>
[src]
impl<'a> Mul<&'a (dyn Matrix<Complex<f64>> + 'a)> for Complex64
[src]
type Output = Mat<Complex64>
The resulting type after applying the *
operator.
fn mul(self, x: &dyn Matrix<Complex64>) -> Mat<Complex64>
[src]
impl<'a, T> Mul<&'a (dyn Matrix<T> + 'a)> for &'a dyn 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: &dyn Matrix<T>) -> Mat<T>
[src]
impl<'a, T> Mul<&'a (dyn Matrix<T> + 'a)> for Trans<&'a dyn 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: &dyn Matrix<T>) -> Mat<T>
[src]
impl<'a> Mul<&'a (dyn Matrix<f32> + 'a)> for f32
[src]
type Output = Mat<f32>
The resulting type after applying the *
operator.
fn mul(self, x: &dyn Matrix<f32>) -> Mat<f32>
[src]
impl<'a> Mul<&'a (dyn Matrix<f64> + 'a)> for f64
[src]
type Output = Mat<f64>
The resulting type after applying the *
operator.
fn mul(self, x: &dyn Matrix<f64>) -> Mat<f64>
[src]
impl<'a, T> Mul<&'a (dyn Vector<T> + 'a)> for &'a dyn 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: &dyn Vector<T>) -> Vec<T>
[src]
impl<'a, T> Mul<T> for &'a dyn 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>
[src]
impl<'a, T> Mul<Trans<&'a (dyn Matrix<T> + 'a)>> for &'a dyn Matrix<T> where
T: Default + Gemm,
[src]
T: Default + Gemm,