ndarray_linalg::cholesky

Struct CholeskyFactorized

source
pub struct CholeskyFactorized<S: Data> {
    pub factor: ArrayBase<S, Ix2>,
    pub uplo: UPLO,
}
Expand description

Cholesky decomposition of Hermitian (or real symmetric) positive definite matrix

Fields§

§factor: ArrayBase<S, Ix2>

L from the decomposition A = L * L^H or U from the decomposition A = U^H * U.

§uplo: UPLO

If this is UPLO::Lower, then self.factor is L. If this is UPLO::Upper, then self.factor is U.

Implementations§

source§

impl<A, S> CholeskyFactorized<S>
where A: Scalar + Lapack, S: DataMut<Elem = A>,

source

pub fn into_lower(self) -> ArrayBase<S, Ix2>

Returns L from the Cholesky decomposition A = L * L^H.

If self.uplo == UPLO::Lower, then no computations need to be performed; otherwise, the conjugate transpose of self.factor is calculated.

source

pub fn into_upper(self) -> ArrayBase<S, Ix2>

Returns U from the Cholesky decomposition A = U^H * U.

If self.uplo == UPLO::Upper, then no computations need to be performed; otherwise, the conjugate transpose of self.factor is calculated.

Trait Implementations§

source§

impl<A, S> DeterminantC for CholeskyFactorized<S>
where A: Scalar + Lapack, S: Data<Elem = A>,

source§

type Output = <A as Scalar>::Real

source§

fn detc(&self) -> Self::Output

Computes the determinant of the Hermitian (or real symmetric) positive definite matrix.
source§

fn ln_detc(&self) -> Self::Output

Computes the natural log of the determinant of the Hermitian (or real symmetric) positive definite matrix. Read more
source§

impl<A, S> DeterminantCInto for CholeskyFactorized<S>
where A: Scalar + Lapack, S: Data<Elem = A>,

source§

type Output = <A as Scalar>::Real

source§

fn detc_into(self) -> Self::Output

Computes the determinant of the Hermitian (or real symmetric) positive definite matrix.
source§

fn ln_detc_into(self) -> Self::Output

Computes the natural log of the determinant of the Hermitian (or real symmetric) positive definite matrix. Read more
source§

impl<A, S> InverseC for CholeskyFactorized<S>
where A: Scalar + Lapack, S: Data<Elem = A>,

source§

type Output = ArrayBase<OwnedRepr<A>, Dim<[usize; 2]>>

source§

fn invc(&self) -> Result<Self::Output>

Computes the inverse of the Hermitian (or real symmetric) positive definite matrix.
source§

impl<A, S> InverseCInto for CholeskyFactorized<S>
where A: Scalar + Lapack, S: DataMut<Elem = A>,

source§

type Output = ArrayBase<S, Dim<[usize; 2]>>

source§

fn invc_into(self) -> Result<Self::Output>

Computes the inverse of the Hermitian (or real symmetric) positive definite matrix.
source§

impl<A, S> SolveC<A> for CholeskyFactorized<S>
where A: Scalar + Lapack, S: Data<Elem = A>,

source§

fn solvec_inplace<'a, Sb>( &self, b: &'a mut ArrayBase<Sb, Ix1>, ) -> Result<&'a mut ArrayBase<Sb, Ix1>>
where Sb: DataMut<Elem = A>,

Solves a system of linear equations A * x = b with Hermitian (or real symmetric) positive definite matrix A, where A is self, b is the argument, and x is the successful result. The value of x is also assigned to the argument.
source§

fn solvec<S: Data<Elem = A>>(&self, b: &ArrayBase<S, Ix1>) -> Result<Array1<A>>

Solves a system of linear equations A * x = b with Hermitian (or real symmetric) positive definite matrix A, where A is self, b is the argument, and x is the successful result.
source§

fn solvec_into<S: DataMut<Elem = A>>( &self, b: ArrayBase<S, Ix1>, ) -> Result<ArrayBase<S, Ix1>>

Solves a system of linear equations A * x = b with Hermitian (or real symmetric) positive definite matrix A, where A is self, b is the argument, and x is the successful result.

Auto Trait Implementations§

§

impl<S> Freeze for CholeskyFactorized<S>
where S: Freeze,

§

impl<S> RefUnwindSafe for CholeskyFactorized<S>

§

impl<S> Send for CholeskyFactorized<S>
where S: Send,

§

impl<S> Sync for CholeskyFactorized<S>
where S: Sync,

§

impl<S> Unpin for CholeskyFactorized<S>
where S: Unpin,

§

impl<S> UnwindSafe for CholeskyFactorized<S>
where S: UnwindSafe, <S as RawData>::Elem: RefUnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V