Struct Svd
pub struct Svd<E>where
E: Entity,{
s: Col<E>,
u: Mat<E>,
v: Mat<E>,
}
Expand description
Singular value decomposition.
Fields§
§s: Col<E>
§u: Mat<E>
§v: Mat<E>
Implementations§
§impl<E> Svd<E>where
E: ComplexField,
impl<E> Svd<E>where
E: ComplexField,
pub fn new<ViewE>(matrix: MatRef<'_, ViewE>) -> Svd<E>where
ViewE: Conjugate<Canonical = E>,
pub fn new<ViewE>(matrix: MatRef<'_, ViewE>) -> Svd<E>where
ViewE: Conjugate<Canonical = E>,
Returns the SVD of the input matrix.
The factorization is such that $A = U S V^H$, where $U$ and $V$ are unitary and $S$ is a rectangular diagonal matrix.
pub fn s_diagonal(&self) -> ColRef<'_, E>
pub fn s_diagonal(&self) -> ColRef<'_, E>
Returns the diagonal of the factor $S$ of the SVD as a column vector.
pub fn pseudoinverse(&self) -> Mat<E>
pub fn pseudoinverse(&self) -> Mat<E>
Computes the pseudo inverse.
Trait Implementations§
§impl<E> SolverCore<E> for Svd<E>where
E: ComplexField,
impl<E> SolverCore<E> for Svd<E>where
E: ComplexField,
§impl<E> SpSolverCore<E> for Svd<E>where
E: ComplexField,
impl<E> SpSolverCore<E> for Svd<E>where
E: ComplexField,
Auto Trait Implementations§
impl<E> Freeze for Svd<E>
impl<E> RefUnwindSafe for Svd<E>where
<<E as Entity>::Group as ForCopyType>::FaerOfCopy<NonNull<<E as Entity>::Unit>>: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for Svd<E>
impl<E> Sync for Svd<E>
impl<E> Unpin for Svd<E>
impl<E> UnwindSafe for Svd<E>where
<<E as Entity>::Group as ForCopyType>::FaerOfCopy<NonNull<<E as Entity>::Unit>>: UnwindSafe,
E: 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> 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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<E, Dec> SpSolver<E> for Dec
impl<E, Dec> SpSolver<E> for Dec
§fn solve_in_place(&self, rhs: impl ColBatchMut<E>)
fn solve_in_place(&self, rhs: impl ColBatchMut<E>)
Solves the equation
self * X = rhs
when self is square, and stores the result in rhs
.§fn solve_conj_in_place(&self, rhs: impl ColBatchMut<E>)
fn solve_conj_in_place(&self, rhs: impl ColBatchMut<E>)
Solves the equation
conjugate(self) * X = rhs
when self is square, and stores the result
in rhs
.§fn solve_transpose_in_place(&self, rhs: impl ColBatchMut<E>)
fn solve_transpose_in_place(&self, rhs: impl ColBatchMut<E>)
Solves the equation
transpose(self) * X = rhs
when self is square, and stores the result
in rhs
.§fn solve_conj_transpose_in_place(&self, rhs: impl ColBatchMut<E>)
fn solve_conj_transpose_in_place(&self, rhs: impl ColBatchMut<E>)
Solves the equation
adjoint(self) * X = rhs
when self is square, and stores the result in
rhs
.§fn solve<ViewE, B>(&self, rhs: B) -> <B as ColBatch<ViewE>>::Owned
fn solve<ViewE, B>(&self, rhs: B) -> <B as ColBatch<ViewE>>::Owned
Solves the equation
self * X = rhs
when self is square, and returns the result.§fn solve_conj<ViewE, B>(&self, rhs: B) -> <B as ColBatch<ViewE>>::Owned
fn solve_conj<ViewE, B>(&self, rhs: B) -> <B as ColBatch<ViewE>>::Owned
Solves the equation
conjugate(self) * X = rhs
when self is square, and returns the result.§fn solve_transpose<ViewE, B>(&self, rhs: B) -> <B as ColBatch<ViewE>>::Owned
fn solve_transpose<ViewE, B>(&self, rhs: B) -> <B as ColBatch<ViewE>>::Owned
Solves the equation
transpose(self) * X = rhs
when self is square, and returns the result.