[−][src]Struct la::Matrix
Methods
impl<T: Copy> Matrix<T>
[src]
pub fn get_mut_data<'a>(&'a mut self) -> &'a mut Vec<T>
[src]
pub fn get_mref<'lt>(&'lt mut self, row: usize, col: usize) -> &'lt mut T
[src]
pub fn mmap<'a>(&'a mut self, f: &dyn Fn(&T) -> T) -> &'a mut Matrix<T>
[src]
impl<T: Num + Neg<Output = T> + Copy> Matrix<T>
[src]
pub fn mneg<'a>(&'a mut self) -> &'a mut Matrix<T>
[src]
pub fn mscale<'a>(&'a mut self, factor: T) -> &'a mut Matrix<T>
[src]
pub fn madd<'a>(&'a mut self, m: &Matrix<T>) -> &'a mut Matrix<T>
[src]
pub fn msub<'a>(&'a mut self, m: &Matrix<T>) -> &'a mut Matrix<T>
[src]
pub fn melem_mul<'a>(&'a mut self, m: &Matrix<T>) -> &'a mut Matrix<T>
[src]
pub fn melem_div<'a>(&'a mut self, m: &Matrix<T>) -> &'a mut Matrix<T>
[src]
pub fn mmul<'a>(
&self,
m: &Matrix<T>,
dst: &'a mut Matrix<T>
) -> &'a mut Matrix<T>
[src]
&self,
m: &Matrix<T>,
dst: &'a mut Matrix<T>
) -> &'a mut Matrix<T>
impl<T: Copy> Matrix<T>
[src]
pub fn set<'a>(
&'a mut self,
row: usize,
col: usize,
val: T
) -> &'a mut Matrix<T>
[src]
&'a mut self,
row: usize,
col: usize,
val: T
) -> &'a mut Matrix<T>
pub fn mt<'a>(&'a mut self) -> &'a mut Matrix<T>
[src]
impl<T: Copy> Matrix<T>
[src]
pub fn new(no_rows: usize, no_cols: usize, data: Vec<T>) -> Matrix<T>
[src]
pub fn dirty(no_rows: usize, no_cols: usize) -> Matrix<T>
[src]
pub fn vector(data: Vec<T>) -> Matrix<T>
[src]
pub fn row_vector(data: Vec<T>) -> Matrix<T>
[src]
pub fn rows(&self) -> usize
[src]
pub fn cols(&self) -> usize
[src]
pub fn get_data<'a>(&'a self) -> &'a Vec<T>
[src]
pub fn get_ref<'lt>(&'lt self, row: usize, col: usize) -> &'lt T
[src]
pub fn map<S: Copy>(&self, f: &dyn Fn(&T) -> S) -> Matrix<S>
[src]
pub fn reduce<S: Copy>(
&self,
init: &Vec<S>,
f: &dyn Fn(&S, &T) -> S
) -> Matrix<S>
[src]
&self,
init: &Vec<S>,
f: &dyn Fn(&S, &T) -> S
) -> Matrix<S>
pub fn is_square(&self) -> bool
[src]
pub fn is_not_square(&self) -> bool
[src]
impl<T: Num + Copy> Matrix<T>
[src]
pub fn id(m: usize, n: usize) -> Matrix<T>
[src]
pub fn zero(no_rows: usize, no_cols: usize) -> Matrix<T>
[src]
pub fn diag(data: Vec<T>) -> Matrix<T>
[src]
pub fn block_diag(m: usize, n: usize, data: Vec<T>) -> Matrix<T>
[src]
pub fn zero_vector(no_rows: usize) -> Matrix<T>
[src]
pub fn one_vector(no_rows: usize) -> Matrix<T>
[src]
impl<T: Num + Neg<Output = T> + Copy> Matrix<T>
[src]
pub fn scale(&self, factor: T) -> Matrix<T>
[src]
pub fn elem_mul(&self, m: &Matrix<T>) -> Matrix<T>
[src]
pub fn elem_div(&self, m: &Matrix<T>) -> Matrix<T>
[src]
pub fn dot(&self, m: &Matrix<T>) -> T
[src]
impl<T: Copy> Matrix<T>
[src]
pub fn get(&self, row: usize, col: usize) -> T
[src]
pub fn cr(&self, m: &Matrix<T>) -> Matrix<T>
[src]
pub fn cb(&self, m: &Matrix<T>) -> Matrix<T>
[src]
pub fn t(&self) -> Matrix<T>
[src]
pub fn minor(&self, row: usize, col: usize) -> Matrix<T>
[src]
pub fn sub_matrix<RRI, RCI, RR, RC>(&self, rows: RR, cols: RC) -> Matrix<T> where
RRI: MatrixRangeIterator,
RCI: MatrixRangeIterator,
RR: MatrixRange<RRI>,
RC: MatrixRange<RCI>,
[src]
RRI: MatrixRangeIterator,
RCI: MatrixRangeIterator,
RR: MatrixRange<RRI>,
RC: MatrixRange<RCI>,
pub fn get_columns<RCI: MatrixRangeIterator, RC: MatrixRange<RCI>>(
&self,
columns: RC
) -> Matrix<T>
[src]
&self,
columns: RC
) -> Matrix<T>
pub fn get_rows<RCI: MatrixRangeIterator, RC: MatrixRange<RCI>>(
&self,
row: RC
) -> Matrix<T>
[src]
&self,
row: RC
) -> Matrix<T>
pub fn permute(&self, rows: &[usize], columns: &[usize]) -> Matrix<T>
[src]
pub fn permute_rows(&self, rows: &[usize]) -> Matrix<T>
[src]
pub fn permute_columns(&self, columns: &[usize]) -> Matrix<T>
[src]
pub fn filter_rows(&self, f: &dyn Fn(&Matrix<T>, usize) -> bool) -> Matrix<T>
[src]
pub fn filter_columns(&self, f: &dyn Fn(&Matrix<T>, usize) -> bool) -> Matrix<T>
[src]
pub fn select_rows(&self, selector: &[bool]) -> Matrix<T>
[src]
pub fn select_columns(&self, selector: &[bool]) -> Matrix<T>
[src]
impl<T: Debug + Copy> Matrix<T>
[src]
impl<T: Rand + Copy> Matrix<T>
[src]
impl<T: Float + ApproxEq<T> + Signed + Copy> Matrix<T>
[src]
pub fn trace(&self) -> T
[src]
pub fn det(&self) -> T
[src]
pub fn solve(&self, b: &Matrix<T>) -> Option<Matrix<T>>
[src]
pub fn inverse(&self) -> Option<Matrix<T>>
[src]
pub fn is_singular(&self) -> bool
[src]
pub fn is_non_singular(&self) -> bool
[src]
pub fn pinverse(&self) -> Matrix<T>
[src]
pub fn vector_euclidean_norm(&self) -> T
[src]
pub fn length(&self) -> T
[src]
pub fn vector_1_norm(&self) -> T
[src]
pub fn vector_2_norm(&self) -> T
[src]
pub fn vector_p_norm(&self, p: T) -> T
[src]
pub fn frobenius_norm(&self) -> T
[src]
pub fn vector_inf_norm(&self) -> T
[src]
pub fn is_symmetric(&self) -> bool
[src]
pub fn is_non_symmetric(&self) -> bool
[src]
pub fn approx_eq(&self, m: &Matrix<T>) -> bool
[src]
Trait Implementations
impl<T: Clone> Clone for Matrix<T>
[src]
impl<T: PartialEq> PartialEq<Matrix<T>> for Matrix<T>
[src]
impl<T: Debug + Copy> Debug for Matrix<T>
[src]
impl<'a, 'b, T: Sub<T, Output = T> + Copy> Sub<&'a Matrix<T>> for &'b Matrix<T>
[src]
type Output = Matrix<T>
The resulting type after applying the -
operator.
fn sub(self, m: &Matrix<T>) -> Matrix<T>
[src]
impl<'a, T: Sub<T, Output = T> + Copy> Sub<Matrix<T>> for &'a Matrix<T>
[src]
type Output = Matrix<T>
The resulting type after applying the -
operator.
fn sub(self, m: Matrix<T>) -> Matrix<T>
[src]
impl<'a, T: Sub<T, Output = T> + Copy> Sub<&'a Matrix<T>> for Matrix<T>
[src]
type Output = Matrix<T>
The resulting type after applying the -
operator.
fn sub(self, m: &Matrix<T>) -> Matrix<T>
[src]
impl<T: Sub<T, Output = T> + Copy> Sub<Matrix<T>> for Matrix<T>
[src]
type Output = Matrix<T>
The resulting type after applying the -
operator.
fn sub(self, m: Matrix<T>) -> Matrix<T>
[src]
impl<'a, 'b, T: Add<T, Output = T> + Copy> Add<&'a Matrix<T>> for &'b Matrix<T>
[src]
type Output = Matrix<T>
The resulting type after applying the +
operator.
fn add(self, m: &Matrix<T>) -> Matrix<T>
[src]
impl<'a, T: Add<T, Output = T> + Copy> Add<Matrix<T>> for &'a Matrix<T>
[src]
type Output = Matrix<T>
The resulting type after applying the +
operator.
fn add(self, m: Matrix<T>) -> Matrix<T>
[src]
impl<'a, T: Add<T, Output = T> + Copy> Add<&'a Matrix<T>> for Matrix<T>
[src]
type Output = Matrix<T>
The resulting type after applying the +
operator.
fn add(self, m: &Matrix<T>) -> Matrix<T>
[src]
impl<T: Add<T, Output = T> + Copy> Add<Matrix<T>> for Matrix<T>
[src]
type Output = Matrix<T>
The resulting type after applying the +
operator.
fn add(self, m: Matrix<T>) -> Matrix<T>
[src]
impl<'a, 'b, T: Add<T, Output = T> + Mul<T, Output = T> + Zero + Copy> Mul<&'a Matrix<T>> for &'b Matrix<T>
[src]
type Output = Matrix<T>
The resulting type after applying the *
operator.
fn mul(self, m: &'a Matrix<T>) -> Matrix<T>
[src]
impl<'a, T: Add<T, Output = T> + Mul<T, Output = T> + Zero + Copy> Mul<Matrix<T>> for &'a Matrix<T>
[src]
type Output = Matrix<T>
The resulting type after applying the *
operator.
fn mul(self, m: Matrix<T>) -> Matrix<T>
[src]
impl<T: Add<T, Output = T> + Mul<T, Output = T> + Zero + Copy> Mul<Matrix<T>> for Matrix<T>
[src]
type Output = Matrix<T>
The resulting type after applying the *
operator.
fn mul(self, m: Matrix<T>) -> Matrix<T>
[src]
impl<'a, T: Add<T, Output = T> + Mul<T, Output = T> + Zero + Copy> Mul<&'a Matrix<T>> for Matrix<T>
[src]
type Output = Matrix<T>
The resulting type after applying the *
operator.
fn mul(self, m: &'a Matrix<T>) -> Matrix<T>
[src]
impl<'a, T: Neg<Output = T> + Copy> Neg for &'a Matrix<T>
[src]
type Output = Matrix<T>
The resulting type after applying the -
operator.
fn neg(self) -> Matrix<T>
[src]
impl<T: Neg<Output = T> + Copy> Neg for Matrix<T>
[src]
type Output = Matrix<T>
The resulting type after applying the -
operator.
fn neg(self) -> Matrix<T>
[src]
impl<'a, T: Copy> BitOr<&'a Matrix<T>> for Matrix<T>
[src]
type Output = Matrix<T>
The resulting type after applying the |
operator.
fn bitor(self, rhs: &Matrix<T>) -> Matrix<T>
[src]
impl<T: Copy> Index<(usize, usize)> for Matrix<T>
[src]
type Output = T
The returned type after indexing.
fn index<'a>(&'a self, (y, x): (usize, usize)) -> &'a T
[src]
impl<T> StructuralPartialEq for Matrix<T>
[src]
Auto Trait Implementations
impl<T> Send for Matrix<T> where
T: Send,
T: Send,
impl<T> Sync for Matrix<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Matrix<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Matrix<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Matrix<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,