pub struct CovGrad { /* private fields */ }Expand description
Representation of the gradient of the covariance matrix
Implementations§
Source§impl CovGrad
impl CovGrad
Sourcepub fn new(
slices: &[Matrix<f64, Dyn, Dyn, VecStorage<f64, Dyn, Dyn>>],
) -> Result<CovGrad, CovGradError>
pub fn new( slices: &[Matrix<f64, Dyn, Dyn, VecStorage<f64, Dyn, Dyn>>], ) -> Result<CovGrad, CovGradError>
Create a new cov-grad with given slices
Sourcepub fn new_unchecked(
slices: &[Matrix<f64, Dyn, Dyn, VecStorage<f64, Dyn, Dyn>>],
) -> CovGrad
pub fn new_unchecked( slices: &[Matrix<f64, Dyn, Dyn, VecStorage<f64, Dyn, Dyn>>], ) -> CovGrad
Create a new unchecked CovGrad
Sourcepub fn component_mul(
&self,
other: &Matrix<f64, Dyn, Dyn, VecStorage<f64, Dyn, Dyn>>,
) -> Result<CovGrad, CovGradError>
pub fn component_mul( &self, other: &Matrix<f64, Dyn, Dyn, VecStorage<f64, Dyn, Dyn>>, ) -> Result<CovGrad, CovGradError>
Component wise multiplication
Sourcepub fn left_mul(
&self,
other: &Matrix<f64, Dyn, Dyn, VecStorage<f64, Dyn, Dyn>>,
) -> Result<CovGrad, CovGradError>
pub fn left_mul( &self, other: &Matrix<f64, Dyn, Dyn, VecStorage<f64, Dyn, Dyn>>, ) -> Result<CovGrad, CovGradError>
Left multiplication by another matrix
Sourcepub fn right_mul(
&self,
other: &Matrix<f64, Dyn, Dyn, VecStorage<f64, Dyn, Dyn>>,
) -> Result<CovGrad, CovGradError>
pub fn right_mul( &self, other: &Matrix<f64, Dyn, Dyn, VecStorage<f64, Dyn, Dyn>>, ) -> Result<CovGrad, CovGradError>
Right multiplication by another matrix
Sourcepub fn relative_eq(&self, other: &CovGrad, rel: f64, abs: f64) -> bool
pub fn relative_eq(&self, other: &CovGrad, rel: f64, abs: f64) -> bool
Check if this is relatively eq to another matrix
Sourcepub fn concat_cols(&self, other: &CovGrad) -> Result<CovGrad, CovGradError>
pub fn concat_cols(&self, other: &CovGrad) -> Result<CovGrad, CovGradError>
Concatenate columns from another matrix
Sourcepub fn from_column_slices(
n: usize,
m: usize,
slice: &[f64],
) -> Result<CovGrad, CovGradError>
pub fn from_column_slices( n: usize, m: usize, slice: &[f64], ) -> Result<CovGrad, CovGradError>
Create a new CovMat from a sequence of column slices
Sourcepub fn from_row_slices(
n: usize,
m: usize,
slice: &[f64],
) -> Result<CovGrad, CovGradError>
pub fn from_row_slices( n: usize, m: usize, slice: &[f64], ) -> Result<CovGrad, CovGradError>
Create a new CovMat from a sequence of row slices
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CovGrad
impl RefUnwindSafe for CovGrad
impl Send for CovGrad
impl Sync for CovGrad
impl Unpin for CovGrad
impl UnsafeUnpin for CovGrad
impl UnwindSafe for CovGrad
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 moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.