pub struct FlatMatrix {
pub data: Vec<f64>,
pub nrows: usize,
pub ncols: usize,
}Expand description
Row-major flat matrix.
Fields§
§data: Vec<f64>Row-major storage: data[i * ncols + j].
nrows: usizeNumber of rows.
ncols: usizeNumber of columns.
Implementations§
Trait Implementations§
Source§impl Clone for FlatMatrix
impl Clone for FlatMatrix
Source§fn clone(&self) -> FlatMatrix
fn clone(&self) -> FlatMatrix
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FlatMatrix
impl RefUnwindSafe for FlatMatrix
impl Send for FlatMatrix
impl Sync for FlatMatrix
impl Unpin for FlatMatrix
impl UnsafeUnpin for FlatMatrix
impl UnwindSafe for FlatMatrix
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