pub struct VecMatrix<T> {
pub rows: usize,
pub cols: usize,
pub data: Vec<Vec<T>>,
}
Expand description
row based
Fields§
§rows: usize
§cols: usize
§data: Vec<Vec<T>>
Implementations§
Source§impl VecMatrix<f64>
impl VecMatrix<f64>
pub fn new(rows: usize, cols: usize) -> VecMatrix<f64>
pub fn pascal(level: usize) -> VecMatrix<f64>
pub fn swap_row(&mut self, i1: usize, i2: usize)
pub fn add_other_row(&mut self, dest: usize, src: usize, multiply: f64)
pub fn multiply_row(&mut self, dest: usize, multiply: f64)
pub fn diagonalize(&mut self)
pub fn det(&mut self) -> f64
pub fn print_data(&self)
Auto Trait Implementations§
impl<T> Freeze for VecMatrix<T>
impl<T> RefUnwindSafe for VecMatrix<T>where
T: RefUnwindSafe,
impl<T> Send for VecMatrix<T>where
T: Send,
impl<T> Sync for VecMatrix<T>where
T: Sync,
impl<T> Unpin for VecMatrix<T>where
T: Unpin,
impl<T> UnwindSafe for VecMatrix<T>where
T: UnwindSafe,
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