pub struct Matrix { /* private fields */ }
Implementations§
source§impl Matrix
impl Matrix
sourcepub fn create(row: usize, col: usize, value: Fraction) -> Matrix
pub fn create(row: usize, col: usize, value: Fraction) -> Matrix
Construct a matrix with row x col identical elements.
sourcepub fn append_row(&mut self, matrix: Matrix) -> &Self
pub fn append_row(&mut self, matrix: Matrix) -> &Self
Expand this matrix by rows.
sourcepub fn append_col(&mut self, matrix: Matrix) -> &Self
pub fn append_col(&mut self, matrix: Matrix) -> &Self
Expand this matrix by columns.
sourcepub fn e_row_swap(&mut self, i: usize, j: usize) -> &Self
pub fn e_row_swap(&mut self, i: usize, j: usize) -> &Self
Elementary Row Operations: Row Swap.
sourcepub fn e_scalar_multiplication(&mut self, i: usize, k: Fraction) -> &Self
pub fn e_scalar_multiplication(&mut self, i: usize, k: Fraction) -> &Self
Elementary Row Operations: Scalar Multiplication.
sourcepub fn e_row_sum(&mut self, i: usize, j: usize, k: Fraction) -> &Self
pub fn e_row_sum(&mut self, i: usize, j: usize, k: Fraction) -> &Self
Elementary Row Operations: Row Sum.
sourcepub fn to_row_echelon(&mut self) -> &Self
pub fn to_row_echelon(&mut self) -> &Self
Transform this matrix to general row echelon form.
Trait Implementations§
source§impl AddAssign for Matrix
impl AddAssign for Matrix
source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moresource§impl MulAssign<Fraction> for Matrix
impl MulAssign<Fraction> for Matrix
source§fn mul_assign(&mut self, rhs: Fraction)
fn mul_assign(&mut self, rhs: Fraction)
Performs the
*=
operation. Read moresource§impl MulAssign for Matrix
impl MulAssign for Matrix
source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
Performs the
*=
operation. Read moresource§impl PartialEq for Matrix
impl PartialEq for Matrix
source§impl PartialOrd for Matrix
impl PartialOrd for Matrix
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl SubAssign for Matrix
impl SubAssign for Matrix
source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreimpl Eq for Matrix
impl StructuralPartialEq for Matrix
Auto Trait Implementations§
impl Freeze for Matrix
impl RefUnwindSafe for Matrix
impl Send for Matrix
impl Sync for Matrix
impl Unpin for Matrix
impl UnwindSafe for Matrix
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more