Struct mat::Product
[−]
[src]
pub struct Product<L, R> { /* fields omitted */ }
The product of two matrices
Trait Implementations
impl<L: Clone, R: Clone> Clone for Product<L, R>
[src]
fn clone(&self) -> Product<L, R>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<L: Copy, R: Copy> Copy for Product<L, R>
[src]
impl<L, R, T> Matrix for Product<L, R> where
L: Matrix<Elem = T>,
R: Matrix<Elem = T>,
T: Add<T, Output = T> + Mul<T, Output = T> + Copy + Zero,
[src]
L: Matrix<Elem = T>,
R: Matrix<Elem = T>,
T: Add<T, Output = T> + Mul<T, Output = T> + Copy + Zero,
type NROWS = L::NROWS
Number of rows
type NCOLS = R::NCOLS
Number of columns
fn get(self, r: usize, c: usize) -> Self::Elem
[src]
Returns the element at row r
and column c
Read more
fn size(self) -> (usize, usize)
[src]
Returns the size of the matrix
fn nrows(self) -> usize
[src]
Returns the number of rows of the matrix
fn ncols(self) -> usize
[src]
Returns the number of columns of the matrix
impl<T, L, R> UnsafeGet for Product<L, R> where
L: Matrix<Elem = T>,
R: Matrix<Elem = T>,
T: Add<T, Output = T> + Mul<T, Output = T> + Copy + Zero,
[src]
L: Matrix<Elem = T>,
R: Matrix<Elem = T>,
T: Add<T, Output = T> + Mul<T, Output = T> + Copy + Zero,
type Elem = T
The matrix element type
unsafe fn unsafe_get(self, r: usize, c: usize) -> T
[src]
Returns the element at row r
and column c
with performing bounds checks
impl<L, R, RHS> Add<RHS> for Product<L, R> where
L: Matrix,
R: Matrix,
RHS: Matrix<NROWS = L::NROWS, NCOLS = R::NCOLS>,
[src]
L: Matrix,
R: Matrix,
RHS: Matrix<NROWS = L::NROWS, NCOLS = R::NCOLS>,