Struct la::Matrix
[−]
[src]
pub struct Matrix<T> {
// some fields omitted
}pub struct Matrix<T> {
// some fields omitted
}impl<T: Copy> Matrix<T>fn get_mut_data<'a>(&'a mut self) -> &'a mut Vec<T>fn get_mref<'lt>(&'lt mut self, row: usize, col: usize) -> &'lt mut Tfn mmap<'a>(&'a mut self, f: &Fn(&T) -> T) -> &'a mut Matrix<T>impl<T: Num + Neg<Output=T> + Copy> Matrix<T>fn mneg<'a>(&'a mut self) -> &'a mut Matrix<T>fn mscale<'a>(&'a mut self, factor: T) -> &'a mut Matrix<T>fn madd<'a>(&'a mut self, m: &Matrix<T>) -> &'a mut Matrix<T>fn msub<'a>(&'a mut self, m: &Matrix<T>) -> &'a mut Matrix<T>fn melem_mul<'a>(&'a mut self, m: &Matrix<T>) -> &'a mut Matrix<T>fn melem_div<'a>(&'a mut self, m: &Matrix<T>) -> &'a mut Matrix<T>fn mmul<'a>(&self, m: &Matrix<T>, dst: &'a mut Matrix<T>) -> &'a mut Matrix<T>impl<T: Copy> Matrix<T>fn set<'a>(&'a mut self, row: usize, col: usize, val: T) -> &'a mut Matrix<T>fn mt<'a>(&'a mut self) -> &'a mut Matrix<T>impl<T: Copy> Matrix<T>fn new(no_rows: usize, no_cols: usize, data: Vec<T>) -> Matrix<T>fn dirty(no_rows: usize, no_cols: usize) -> Matrix<T>fn vector(data: Vec<T>) -> Matrix<T>fn row_vector(data: Vec<T>) -> Matrix<T>fn rows(&self) -> usizefn cols(&self) -> usizefn get_data<'a>(&'a self) -> &'a Vec<T>fn get_ref<'lt>(&'lt self, row: usize, col: usize) -> &'lt Tfn map<S: Copy>(&self, f: &Fn(&T) -> S) -> Matrix<S>fn reduce<S: Copy>(&self, init: &Vec<S>, f: &Fn(&S, &T) -> S) -> Matrix<S>fn is_square(&self) -> boolfn is_not_square(&self) -> boolimpl<T: Num + Copy> Matrix<T>fn id(m: usize, n: usize) -> Matrix<T>fn zero(no_rows: usize, no_cols: usize) -> Matrix<T>fn diag(data: Vec<T>) -> Matrix<T>fn block_diag(m: usize, n: usize, data: Vec<T>) -> Matrix<T>fn zero_vector(no_rows: usize) -> Matrix<T>fn one_vector(no_rows: usize) -> Matrix<T>impl<T: Num + Neg<Output=T> + Copy> Matrix<T>fn scale(&self, factor: T) -> Matrix<T>fn elem_mul(&self, m: &Matrix<T>) -> Matrix<T>fn elem_div(&self, m: &Matrix<T>) -> Matrix<T>fn dot(&self, m: &Matrix<T>) -> Timpl<T: Copy> Matrix<T>fn get(&self, row: usize, col: usize) -> Tfn cr(&self, m: &Matrix<T>) -> Matrix<T>fn cb(&self, m: &Matrix<T>) -> Matrix<T>fn t(&self) -> Matrix<T>fn minor(&self, row: usize, col: usize) -> Matrix<T>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>fn get_columns<RCI: MatrixRangeIterator, RC: MatrixRange<RCI>>(&self, columns: RC) -> Matrix<T>fn get_rows<RCI: MatrixRangeIterator, RC: MatrixRange<RCI>>(&self, row: RC) -> Matrix<T>fn permute(&self, rows: &[usize], columns: &[usize]) -> Matrix<T>fn permute_rows(&self, rows: &[usize]) -> Matrix<T>fn permute_columns(&self, columns: &[usize]) -> Matrix<T>fn filter_rows(&self, f: &Fn(&Matrix<T>, usize) -> bool) -> Matrix<T>fn filter_columns(&self, f: &Fn(&Matrix<T>, usize) -> bool) -> Matrix<T>fn select_rows(&self, selector: &[bool]) -> Matrix<T>fn select_columns(&self, selector: &[bool]) -> Matrix<T>impl<T: Debug + Copy> Matrix<T>fn print(&self)impl<T: Rand + Copy> Matrix<T>impl<T: Float + ApproxEq<T> + Signed + Copy> Matrix<T>fn trace(&self) -> Tfn det(&self) -> Tfn solve(&self, b: &Matrix<T>) -> Option<Matrix<T>>fn inverse(&self) -> Option<Matrix<T>>fn is_singular(&self) -> boolfn is_non_singular(&self) -> boolfn pinverse(&self) -> Matrix<T>fn vector_euclidean_norm(&self) -> Tfn length(&self) -> Tfn vector_1_norm(&self) -> Tfn vector_2_norm(&self) -> Tfn vector_p_norm(&self, p: T) -> Tfn frobenius_norm(&self) -> Tfn vector_inf_norm(&self) -> Tfn is_symmetric(&self) -> boolfn is_non_symmetric(&self) -> boolfn approx_eq(&self, m: &Matrix<T>) -> boolimpl<T: Debug + Copy> Debug for Matrix<T>impl<'a, T: Neg<Output=T> + Copy> Neg for &'a Matrix<T>impl<T: Neg<Output=T> + Copy> Neg for Matrix<T>impl<'a, 'b, T: Add<T, Output=T> + Copy> Add<&'a Matrix<T>> for &'b Matrix<T>impl<'a, T: Add<T, Output=T> + Copy> Add<Matrix<T>> for &'a Matrix<T>impl<'a, T: Add<T, Output=T> + Copy> Add<&'a Matrix<T>> for Matrix<T>impl<T: Add<T, Output=T> + Copy> Add<Matrix<T>> for Matrix<T>impl<'a, 'b, T: Sub<T, Output=T> + Copy> Sub<&'a Matrix<T>> for &'b Matrix<T>impl<'a, T: Sub<T, Output=T> + Copy> Sub<Matrix<T>> for &'a Matrix<T>impl<'a, T: Sub<T, Output=T> + Copy> Sub<&'a Matrix<T>> for Matrix<T>impl<T: Sub<T, Output=T> + Copy> Sub<Matrix<T>> for Matrix<T>impl<'a, 'b, T: Add<T, Output=T> + Mul<T, Output=T> + Zero + Copy> Mul<&'a Matrix<T>> for &'b Matrix<T>impl<'a, T: Add<T, Output=T> + Mul<T, Output=T> + Zero + Copy> Mul<Matrix<T>> for &'a Matrix<T>impl<T: Add<T, Output=T> + Mul<T, Output=T> + Zero + Copy> Mul<Matrix<T>> for Matrix<T>impl<'a, T: Add<T, Output=T> + Mul<T, Output=T> + Zero + Copy> Mul<&'a Matrix<T>> for Matrix<T>impl<T: Copy> Index<(usize, usize)> for Matrix<T>impl<'a, T: Copy> BitOr<&'a Matrix<T>> for Matrix<T>impl<T: Clone> Clone for Matrix<T>fn clone(&self) -> Matrix<T>fn clone_from(&mut self, source: &Self)impl<T: PartialEq> PartialEq for Matrix<T>