pub struct SquareMatrix { /* private fields */ }Expand description
A data structure representing a square matrix.
Implementations§
Source§impl SquareMatrix
impl SquareMatrix
pub fn zeros(n_items: usize) -> Self
pub fn ones(n_items: usize) -> Self
pub fn identity(n_items: usize) -> Self
pub fn data(&self) -> &[f64]
pub fn data_mut(&mut self) -> &mut [f64]
pub fn view(&mut self) -> SquareMatrixBorrower<'_>
pub fn n_items(&self) -> usize
Auto Trait Implementations§
impl Freeze for SquareMatrix
impl RefUnwindSafe for SquareMatrix
impl Send for SquareMatrix
impl Sync for SquareMatrix
impl Unpin for SquareMatrix
impl UnwindSafe for SquareMatrix
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