Struct mat::Sum
[−]
[src]
pub struct Sum<L, R> { /* fields omitted */ }
The sum of two matrices
Trait Implementations
impl<L: Clone, R: Clone> Clone for Sum<L, R>
[src]
fn clone(&self) -> Sum<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 Sum<L, R>
[src]
impl<T, L, R> Matrix for Sum<L, R> where
L: Matrix<Elem = T>,
R: Matrix<Elem = T>,
T: Add<T, Output = T> + Copy,
[src]
L: Matrix<Elem = T>,
R: Matrix<Elem = T>,
T: Add<T, Output = T> + Copy,
type NROWS = L::NROWS
Number of rows
type NCOLS = L::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 Sum<L, R> where
L: Matrix<Elem = T>,
R: Matrix<Elem = T>,
T: Add<T, Output = T> + Copy,
[src]
L: Matrix<Elem = T>,
R: Matrix<Elem = T>,
T: Add<T, Output = T> + Copy,
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