pub struct SVD<A: Scalar> {
pub u: Array2<A>,
pub s: Array1<A::Real>,
pub vt: Array2<A>,
}
Expand description
This structure stores the Singular Value Decomposition of a matrix
Fields§
§u: Array2<A>
The U matrix
s: Array1<A::Real>
The array of singular values
vt: Array2<A>
The vt matrix
Trait Implementations§
Source§impl SVDTraits for SVD<c32>
impl SVDTraits for SVD<c32>
type A = Complex<f32>
fn get_u(&self) -> ArrayView2<'_, Self::A>
fn get_s(&self) -> ArrayView1<'_, <Self::A as Scalar>::Real>
fn get_vt(&self) -> ArrayView2<'_, Self::A>
fn get_u_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn get_s_mut(&mut self) -> ArrayViewMut1<'_, <Self::A as Scalar>::Real>
fn get_vt_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn compute_from(arr: ArrayView2<'_, Self::A>) -> Result<SVD<Self::A>>
Source§fn compute_from_range_estimate<Op: ConjMatMat<A = Self::A>>(
range: ArrayView2<'_, Self::A>,
op: &Op,
) -> Result<SVD<Self::A>>
fn compute_from_range_estimate<Op: ConjMatMat<A = Self::A>>( range: ArrayView2<'_, Self::A>, op: &Op, ) -> Result<SVD<Self::A>>
Compute a singular value decomposition from a range estimate Read more
Source§fn compress(&self, compression_type: CompressionType) -> Result<SVD<Self::A>>
fn compress(&self, compression_type: CompressionType) -> Result<SVD<Self::A>>
Compress to SVD.
Source§impl SVDTraits for SVD<c64>
impl SVDTraits for SVD<c64>
type A = Complex<f64>
fn get_u(&self) -> ArrayView2<'_, Self::A>
fn get_s(&self) -> ArrayView1<'_, <Self::A as Scalar>::Real>
fn get_vt(&self) -> ArrayView2<'_, Self::A>
fn get_u_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn get_s_mut(&mut self) -> ArrayViewMut1<'_, <Self::A as Scalar>::Real>
fn get_vt_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn compute_from(arr: ArrayView2<'_, Self::A>) -> Result<SVD<Self::A>>
Source§fn compute_from_range_estimate<Op: ConjMatMat<A = Self::A>>(
range: ArrayView2<'_, Self::A>,
op: &Op,
) -> Result<SVD<Self::A>>
fn compute_from_range_estimate<Op: ConjMatMat<A = Self::A>>( range: ArrayView2<'_, Self::A>, op: &Op, ) -> Result<SVD<Self::A>>
Compute a singular value decomposition from a range estimate Read more
Source§fn compress(&self, compression_type: CompressionType) -> Result<SVD<Self::A>>
fn compress(&self, compression_type: CompressionType) -> Result<SVD<Self::A>>
Compress to SVD.
Source§impl SVDTraits for SVD<f32>
impl SVDTraits for SVD<f32>
type A = f32
fn get_u(&self) -> ArrayView2<'_, Self::A>
fn get_s(&self) -> ArrayView1<'_, <Self::A as Scalar>::Real>
fn get_vt(&self) -> ArrayView2<'_, Self::A>
fn get_u_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn get_s_mut(&mut self) -> ArrayViewMut1<'_, <Self::A as Scalar>::Real>
fn get_vt_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn compute_from(arr: ArrayView2<'_, Self::A>) -> Result<SVD<Self::A>>
Source§fn compute_from_range_estimate<Op: ConjMatMat<A = Self::A>>(
range: ArrayView2<'_, Self::A>,
op: &Op,
) -> Result<SVD<Self::A>>
fn compute_from_range_estimate<Op: ConjMatMat<A = Self::A>>( range: ArrayView2<'_, Self::A>, op: &Op, ) -> Result<SVD<Self::A>>
Compute a singular value decomposition from a range estimate Read more
Source§fn compress(&self, compression_type: CompressionType) -> Result<SVD<Self::A>>
fn compress(&self, compression_type: CompressionType) -> Result<SVD<Self::A>>
Compress to SVD.
Source§impl SVDTraits for SVD<f64>
impl SVDTraits for SVD<f64>
type A = f64
fn get_u(&self) -> ArrayView2<'_, Self::A>
fn get_s(&self) -> ArrayView1<'_, <Self::A as Scalar>::Real>
fn get_vt(&self) -> ArrayView2<'_, Self::A>
fn get_u_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn get_s_mut(&mut self) -> ArrayViewMut1<'_, <Self::A as Scalar>::Real>
fn get_vt_mut(&mut self) -> ArrayViewMut2<'_, Self::A>
fn compute_from(arr: ArrayView2<'_, Self::A>) -> Result<SVD<Self::A>>
Source§fn compute_from_range_estimate<Op: ConjMatMat<A = Self::A>>(
range: ArrayView2<'_, Self::A>,
op: &Op,
) -> Result<SVD<Self::A>>
fn compute_from_range_estimate<Op: ConjMatMat<A = Self::A>>( range: ArrayView2<'_, Self::A>, op: &Op, ) -> Result<SVD<Self::A>>
Compute a singular value decomposition from a range estimate Read more
Source§fn compress(&self, compression_type: CompressionType) -> Result<SVD<Self::A>>
fn compress(&self, compression_type: CompressionType) -> Result<SVD<Self::A>>
Compress to SVD.
Auto Trait Implementations§
impl<A> Freeze for SVD<A>
impl<A> RefUnwindSafe for SVD<A>
impl<A> Send for SVD<A>
impl<A> Sync for SVD<A>
impl<A> Unpin for SVD<A>
impl<A> UnwindSafe for SVD<A>
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