pub struct DenseMatrix { /* private fields */ }Implementations§
Source§impl DenseMatrix
impl DenseMatrix
pub fn zeros(nrows: usize, ncols: usize) -> Self
pub fn identity(nrows: usize, ncols: usize) -> Self
pub fn from_diagonal_element(nrows: usize, ncols: usize, value: f64) -> Self
pub fn from_column_slice(nrows: usize, ncols: usize, data: &[f64]) -> Self
pub fn from_row_slice(nrows: usize, ncols: usize, data: &[f64]) -> Self
pub fn from_fn( nrows: usize, ncols: usize, f: impl FnMut(usize, usize) -> f64, ) -> Self
pub fn nrows(&self) -> usize
pub fn ncols(&self) -> usize
pub fn as_slice(&self) -> &[f64]
pub fn into_vec(self) -> Vec<f64>
Trait Implementations§
Source§impl Clone for DenseMatrix
impl Clone for DenseMatrix
Source§fn clone(&self) -> DenseMatrix
fn clone(&self) -> DenseMatrix
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 moreSource§impl Debug for DenseMatrix
impl Debug for DenseMatrix
Source§impl PartialEq for DenseMatrix
impl PartialEq for DenseMatrix
impl StructuralPartialEq for DenseMatrix
Auto Trait Implementations§
impl Freeze for DenseMatrix
impl RefUnwindSafe for DenseMatrix
impl Send for DenseMatrix
impl Sync for DenseMatrix
impl Unpin for DenseMatrix
impl UnsafeUnpin for DenseMatrix
impl UnwindSafe for DenseMatrix
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more