pub struct MatrixView<'a> { /* private fields */ }Expand description
Immutable matrix view. Constructor validates reachable indices and values; unrelated padding elements may contain arbitrary values. Overlapping READS are allowed; the view cannot be used to create mutable aliases.
Implementations§
Source§impl<'a> MatrixView<'a>
impl<'a> MatrixView<'a>
pub fn contiguous( rows: usize, cols: usize, data: &'a [f64], ) -> Result<Self, SolverError>
pub fn strided( rows: usize, cols: usize, data: &'a [f64], offset: usize, row_stride: usize, col_stride: usize, ) -> Result<Self, SolverError>
pub fn rows(self) -> usize
pub fn columns(self) -> usize
pub fn get(self, row: usize, column: usize) -> Option<f64>
pub fn transpose(self) -> Self
pub fn to_owned(self) -> Result<Matrix, SolverError>
Trait Implementations§
Source§impl<'a> Clone for MatrixView<'a>
impl<'a> Clone for MatrixView<'a>
Source§fn clone(&self) -> MatrixView<'a>
fn clone(&self) -> MatrixView<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for MatrixView<'a>
Source§impl<'a> Debug for MatrixView<'a>
impl<'a> Debug for MatrixView<'a>
Auto Trait Implementations§
impl<'a> Freeze for MatrixView<'a>
impl<'a> RefUnwindSafe for MatrixView<'a>
impl<'a> Send for MatrixView<'a>
impl<'a> Sync for MatrixView<'a>
impl<'a> Unpin for MatrixView<'a>
impl<'a> UnsafeUnpin for MatrixView<'a>
impl<'a> UnwindSafe for MatrixView<'a>
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