pub struct Matrix { /* private fields */ }
Implementations§
Source§impl Matrix
impl Matrix
pub fn from(matrix: Vec<Vec<f64>>) -> Matrix
pub fn n(&self) -> usize
pub fn m(&self) -> usize
pub fn is_square(&self) -> bool
pub fn transpose(&self) -> Matrix
pub fn iter(&self) -> Iter<'_, Vec<f64>>
pub fn inv(&self) -> Matrix
pub fn diagonal(vec: Vector) -> Matrix
Trait Implementations§
Source§impl Init for Matrix
impl Init 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