pub struct SymmetricPackedMatrix<T = f64>where
T: Number,{ /* private fields */ }
Implementations§
Source§impl SymmetricPackedMatrix
impl SymmetricPackedMatrix
Sourcepub fn sptrf(self) -> Result<SPTRF, MatrixError>
pub fn sptrf(self) -> Result<SPTRF, MatrixError>
Source§impl<T> SymmetricPackedMatrix<T>where
T: Number,
impl<T> SymmetricPackedMatrix<T>where
T: Number,
pub fn new(dim: usize) -> Self
Sourcepub fn from(dim: usize, elems: Vec<T>) -> Result<Self, MatrixError>
pub fn from(dim: usize, elems: Vec<T>) -> Result<Self, MatrixError>
You can do unwrap()
if you have a conviction that elems.len() == dim * (dim + 1) / 2
pub fn dim(&self) -> usize
pub fn eject(self) -> Vec<T>
pub fn elems(&self) -> &[T]
pub fn elems_mut(&mut self) -> &mut [T]
pub fn from_mat(mat: &Matrix<T>) -> Result<Self, MatrixError>
pub fn to_mat(&self) -> Matrix<T>
Trait Implementations§
Source§impl<T> Clone for SymmetricPackedMatrix<T>
impl<T> Clone for SymmetricPackedMatrix<T>
Source§fn clone(&self) -> SymmetricPackedMatrix<T>
fn clone(&self) -> SymmetricPackedMatrix<T>
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<T> Debug for SymmetricPackedMatrix<T>
impl<T> Debug for SymmetricPackedMatrix<T>
Source§impl<T> Default for SymmetricPackedMatrix<T>
impl<T> Default for SymmetricPackedMatrix<T>
Source§fn default() -> SymmetricPackedMatrix<T>
fn default() -> SymmetricPackedMatrix<T>
Returns the “default value” for a type. Read more
Source§impl<'de, T> Deserialize<'de> for SymmetricPackedMatrix<T>where
T: Number + Deserialize<'de>,
impl<'de, T> Deserialize<'de> for SymmetricPackedMatrix<T>where
T: Number + Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> Hash for SymmetricPackedMatrix<T>
impl<T> Hash for SymmetricPackedMatrix<T>
Source§impl<T> PartialEq for SymmetricPackedMatrix<T>
impl<T> PartialEq for SymmetricPackedMatrix<T>
Source§impl<T> Serialize for SymmetricPackedMatrix<T>
impl<T> Serialize for SymmetricPackedMatrix<T>
impl<T> StructuralPartialEq for SymmetricPackedMatrix<T>where
T: Number,
Auto Trait Implementations§
impl<T> Freeze for SymmetricPackedMatrix<T>
impl<T> RefUnwindSafe for SymmetricPackedMatrix<T>where
T: RefUnwindSafe,
impl<T> Send for SymmetricPackedMatrix<T>
impl<T> Sync for SymmetricPackedMatrix<T>
impl<T> Unpin for SymmetricPackedMatrix<T>where
T: Unpin,
impl<T> UnwindSafe for SymmetricPackedMatrix<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
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