pub struct KernelOps;Expand description
Kernel matrix operations and utilities
Implementations§
Source§impl KernelOps
impl KernelOps
Sourcepub fn cholesky_with_jitter(
matrix: &Array2<f64>,
jitter: f64,
) -> Result<Array2<f64>>
pub fn cholesky_with_jitter( matrix: &Array2<f64>, jitter: f64, ) -> Result<Array2<f64>>
Compute Cholesky decomposition with jitter for numerical stability
Sourcepub fn solve_triangular_lower(l: &Array2<f64>, b: &Array1<f64>) -> Array1<f64>
pub fn solve_triangular_lower(l: &Array2<f64>, b: &Array1<f64>) -> Array1<f64>
Solve triangular system L * x = b
Sourcepub fn solve_triangular_upper(u: &Array2<f64>, b: &Array1<f64>) -> Array1<f64>
pub fn solve_triangular_upper(u: &Array2<f64>, b: &Array1<f64>) -> Array1<f64>
Solve triangular system U * x = b (where U = L^T)
Sourcepub fn log_det_from_cholesky(l: &Array2<f64>) -> f64
pub fn log_det_from_cholesky(l: &Array2<f64>) -> f64
Compute log determinant from Cholesky factor
Auto Trait Implementations§
impl Freeze for KernelOps
impl RefUnwindSafe for KernelOps
impl Send for KernelOps
impl Sync for KernelOps
impl Unpin for KernelOps
impl UnwindSafe for KernelOps
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> 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