pub struct LltRef<'a, I: Index, E: Entity> { /* private fields */ }
Expand description

Sparse LLT factorization wrapper.

Implementations§

source§

impl<'a, I: Index, E: Entity> LltRef<'a, I, E>

source

pub fn new( symbolic: &'a SymbolicCholesky<I>, values: GroupFor<E, &'a [E::Unit]> ) -> Self

source

pub fn symbolic(self) -> &'a SymbolicCholesky<I>

source

pub fn solve_in_place_with_conj( &self, conj: Conj, rhs: MatMut<'_, E>, parallelism: Parallelism, stack: PodStack<'_> )
where E: ComplexField,

Methods from Deref<Target = SymbolicCholesky<I>>§

source

pub fn nrows(&self) -> usize

Returns the number of rows of the matrix.

source

pub fn ncols(&self) -> usize

Returns the number of columns of the matrix.

source

pub fn raw(&self) -> &SymbolicCholeskyRaw<I>

Returns the inner type of the factorization, either simplicial or symbolic.

source

pub fn perm(&self) -> PermutationRef<'_, I, Symbolic>

Returns the permutation that was computed during symbolic analysis.

source

pub fn len_values(&self) -> usize

Returns the length of the slice needed to store the numerical values of the Cholesky decomposition.

source

pub fn factorize_numeric_llt_req<E: Entity>( &self, parallelism: Parallelism ) -> Result<StackReq, SizeOverflow>

Computes the required workspace size and alignment for a numerical LLT factorization.

source

pub fn factorize_numeric_ldlt_req<E: Entity>( &self, with_regularization_signs: bool, parallelism: Parallelism ) -> Result<StackReq, SizeOverflow>

Computes the required workspace size and alignment for a numerical LDLT factorization.

source

pub fn factorize_numeric_intranode_bunch_kaufman_req<E: Entity>( &self, with_regularization_signs: bool, parallelism: Parallelism ) -> Result<StackReq, SizeOverflow>

Computes the required workspace size and alignment for a numerical intranodal Bunch-Kaufman factorization.

source

pub fn factorize_numeric_llt<'out, E: ComplexField>( &'out self, L_values: GroupFor<E, &'out mut [E::Unit]>, A: SparseColMatRef<'_, I, E>, side: Side, regularization: LltRegularization<E>, parallelism: Parallelism, stack: PodStack<'_> ) -> Result<LltRef<'out, I, E>, CholeskyError>

Computes a numerical LLT factorization of A, or returns a CholeskyError if the matrix is not numerically positive definite.

source

pub fn factorize_numeric_ldlt<'out, E: ComplexField>( &'out self, L_values: GroupFor<E, &'out mut [E::Unit]>, A: SparseColMatRef<'_, I, E>, side: Side, regularization: LdltRegularization<'_, E>, parallelism: Parallelism, stack: PodStack<'_> ) -> LdltRef<'out, I, E>

Computes a numerical LDLT factorization of A.

source

pub fn factorize_numeric_intranode_bunch_kaufman<'out, E: ComplexField>( &'out self, L_values: GroupFor<E, &'out mut [E::Unit]>, subdiag: GroupFor<E, &'out mut [E::Unit]>, perm_forward: &'out mut [I], perm_inverse: &'out mut [I], A: SparseColMatRef<'_, I, E>, side: Side, regularization: LdltRegularization<'_, E>, parallelism: Parallelism, stack: PodStack<'_> ) -> IntranodeBunchKaufmanRef<'out, I, E>

Computes a numerical intranodal Bunch-Kaufman factorization of A.

source

pub fn solve_in_place_req<E: Entity>( &self, rhs_ncols: usize ) -> Result<StackReq, SizeOverflow>

Computes the required workspace size and alignment for a dense solve in place using an LLT, LDLT or intranodal Bunch-Kaufman factorization.

Trait Implementations§

source§

impl<'a, I: Index, E: Entity> Clone for LltRef<'a, I, E>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<'a, I: Debug + Index, E: Debug + Entity> Debug for LltRef<'a, I, E>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a, I: Index, E: Entity> Deref for LltRef<'a, I, E>

§

type Target = SymbolicCholesky<I>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<'a, I: Index, E: Entity> Copy for LltRef<'a, I, E>

Auto Trait Implementations§

§

impl<'a, I, E> RefUnwindSafe for LltRef<'a, I, E>

§

impl<'a, I, E> Send for LltRef<'a, I, E>

§

impl<'a, I, E> Sync for LltRef<'a, I, E>

§

impl<'a, I, E> Unpin for LltRef<'a, I, E>
where <<E as Entity>::Group as ForCopyType>::FaerOfCopy<*const [<E as Entity>::Unit]>: Unpin,

§

impl<'a, I, E> UnwindSafe for LltRef<'a, I, E>

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.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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.