Struct lars::matrix::Matrix
[−]
[src]
pub struct Matrix<T: Number> { // some fields omitted }
Methods
impl<T: Number> Matrix<T>[src]
fn get(&self, r: usize, c: usize) -> T
fn set(&mut self, r: usize, c: usize, a: T)
fn new(rows: usize, cols: usize, default: T) -> Matrix<T>
fn reshape(&mut self, rows: usize, cols: usize)
fn get_vector(&self) -> Vec<T>
fn get_cols(&self) -> usize
fn get_rows(&self) -> usize
fn transpose(&mut self)
fn transposed(&self) -> Matrix<T>
fn trace(&self) -> T
Trait Implementations
impl<T: Number + Display> Display for Matrix<T>[src]
impl<T: Number> Index<usize> for Matrix<T>[src]
type Output = [T]
The returned type after indexing
fn index<'a>(&'a self, index: usize) -> &'a [T]
The method for the indexing (Foo[Bar]) operation
impl<T: Number> Clone for Matrix<T>[src]
fn clone(&self) -> Matrix<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Matrix<T>)
Performs copy-assignment from source. Read more
impl<T: Number> Add<Matrix<T>> for Matrix<T>[src]
type Output = Matrix<T>
The resulting type after applying the + operator
fn add(self, rhs: Matrix<T>) -> Matrix<T>
The method for the + operator
impl<T: Number> Sub<Matrix<T>> for Matrix<T>[src]
type Output = Matrix<T>
The resulting type after applying the - operator
fn sub(self, rhs: Matrix<T>) -> Matrix<T>
The method for the - operator
impl<T: Number> Mul<Matrix<T>> for Matrix<T>[src]
type Output = Matrix<T>
The resulting type after applying the * operator
fn mul(self, rhs: Matrix<T>) -> Matrix<T>
The method for the * operator
impl<T: Number> Div<Matrix<T>> for Matrix<T>[src]
type Output = Matrix<T>
The resulting type after applying the / operator
fn div(self, rhs: Matrix<T>) -> Matrix<T>
The method for the / operator
impl<T: Number + Neg<Output=T>> Neg for Matrix<T>[src]
type Output = Matrix<T>
The resulting type after applying the - operator
fn neg(self) -> Matrix<T>
The method for the unary - operator
impl<T: Number> Mul<T> for Matrix<T>[src]
type Output = Matrix<T>
The resulting type after applying the * operator
fn mul(self, rhs: T) -> Matrix<T>
The method for the * operator
impl<T: Number> Mul<Vector<T>> for Matrix<T>[src]
type Output = Vector<T>
The resulting type after applying the * operator
fn mul(self, rhs: Vector<T>) -> Vector<T>
The method for the * operator
impl<T: Number> Add<Vector<T>> for Matrix<T>[src]
type Output = Vector<T>
The resulting type after applying the + operator
fn add(self, rhs: Vector<T>) -> Vector<T>
The method for the + operator
impl<T: Number> Sub<Vector<T>> for Matrix<T>[src]
type Output = Vector<T>
The resulting type after applying the - operator
fn sub(self, rhs: Vector<T>) -> Vector<T>
The method for the - operator
impl<T: Number> Div<Vector<T>> for Matrix<T>[src]
type Output = Vector<T>
The resulting type after applying the / operator
fn div(self, rhs: Vector<T>) -> Vector<T>
The method for the / operator
impl<T: Number> Div<T> for Matrix<T>[src]
type Output = Matrix<T>
The resulting type after applying the / operator
fn div(self, rhs: T) -> Matrix<T>
The method for the / operator
impl<T: Number> Add<T> for Matrix<T>[src]
type Output = Matrix<T>
The resulting type after applying the + operator
fn add(self, rhs: T) -> Matrix<T>
The method for the + operator
impl<T: Number> Sub<T> for Matrix<T>[src]
type Output = Matrix<T>
The resulting type after applying the - operator
fn sub(self, rhs: T) -> Matrix<T>
The method for the - operator
impl<T: Number> PartialEq for Matrix<T>[src]
fn eq(&self, other: &Matrix<T>) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.