Struct SVD

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

Source§

type A = Complex<f32>

Source§

fn get_u(&self) -> ArrayView2<'_, Self::A>

Source§

fn get_s(&self) -> ArrayView1<'_, <Self::A as Scalar>::Real>

Source§

fn get_vt(&self) -> ArrayView2<'_, Self::A>

Source§

fn get_u_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn get_s_mut(&mut self) -> ArrayViewMut1<'_, <Self::A as Scalar>::Real>

Source§

fn get_vt_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn to_qr(self) -> Result<QR<Self::A>>

Convert to a QR Decomposition.
Source§

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

Compute a singular value decomposition from a range estimate Read more
Source§

fn nrows(&self) -> usize

Return the number of rows of the underlying operator
Source§

fn ncols(&self) -> usize

Return the number of columns of the underlying operator
Source§

fn rank(&self) -> usize

Return the rank of the underlying operator
Source§

fn to_mat(&self) -> Array2<Self::A>

Convert to a matrix.
Source§

fn compress(&self, compression_type: CompressionType) -> Result<SVD<Self::A>>

Compress to SVD.
Source§

fn compress_svd_rank(&self, max_rank: usize) -> Result<SVD<Self::A>>

Compress the SVD by specifying a target rank.
Source§

fn compress_svd_tolerance(&self, tol: f64) -> Result<SVD<Self::A>>

Compress the SVD by specifying a relative tolerance.
Source§

impl SVDTraits for SVD<c64>

Source§

type A = Complex<f64>

Source§

fn get_u(&self) -> ArrayView2<'_, Self::A>

Source§

fn get_s(&self) -> ArrayView1<'_, <Self::A as Scalar>::Real>

Source§

fn get_vt(&self) -> ArrayView2<'_, Self::A>

Source§

fn get_u_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn get_s_mut(&mut self) -> ArrayViewMut1<'_, <Self::A as Scalar>::Real>

Source§

fn get_vt_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn to_qr(self) -> Result<QR<Self::A>>

Convert to a QR Decomposition.
Source§

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

Compute a singular value decomposition from a range estimate Read more
Source§

fn nrows(&self) -> usize

Return the number of rows of the underlying operator
Source§

fn ncols(&self) -> usize

Return the number of columns of the underlying operator
Source§

fn rank(&self) -> usize

Return the rank of the underlying operator
Source§

fn to_mat(&self) -> Array2<Self::A>

Convert to a matrix.
Source§

fn compress(&self, compression_type: CompressionType) -> Result<SVD<Self::A>>

Compress to SVD.
Source§

fn compress_svd_rank(&self, max_rank: usize) -> Result<SVD<Self::A>>

Compress the SVD by specifying a target rank.
Source§

fn compress_svd_tolerance(&self, tol: f64) -> Result<SVD<Self::A>>

Compress the SVD by specifying a relative tolerance.
Source§

impl SVDTraits for SVD<f32>

Source§

type A = f32

Source§

fn get_u(&self) -> ArrayView2<'_, Self::A>

Source§

fn get_s(&self) -> ArrayView1<'_, <Self::A as Scalar>::Real>

Source§

fn get_vt(&self) -> ArrayView2<'_, Self::A>

Source§

fn get_u_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn get_s_mut(&mut self) -> ArrayViewMut1<'_, <Self::A as Scalar>::Real>

Source§

fn get_vt_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn to_qr(self) -> Result<QR<Self::A>>

Convert to a QR Decomposition.
Source§

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

Compute a singular value decomposition from a range estimate Read more
Source§

fn nrows(&self) -> usize

Return the number of rows of the underlying operator
Source§

fn ncols(&self) -> usize

Return the number of columns of the underlying operator
Source§

fn rank(&self) -> usize

Return the rank of the underlying operator
Source§

fn to_mat(&self) -> Array2<Self::A>

Convert to a matrix.
Source§

fn compress(&self, compression_type: CompressionType) -> Result<SVD<Self::A>>

Compress to SVD.
Source§

fn compress_svd_rank(&self, max_rank: usize) -> Result<SVD<Self::A>>

Compress the SVD by specifying a target rank.
Source§

fn compress_svd_tolerance(&self, tol: f64) -> Result<SVD<Self::A>>

Compress the SVD by specifying a relative tolerance.
Source§

impl SVDTraits for SVD<f64>

Source§

type A = f64

Source§

fn get_u(&self) -> ArrayView2<'_, Self::A>

Source§

fn get_s(&self) -> ArrayView1<'_, <Self::A as Scalar>::Real>

Source§

fn get_vt(&self) -> ArrayView2<'_, Self::A>

Source§

fn get_u_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn get_s_mut(&mut self) -> ArrayViewMut1<'_, <Self::A as Scalar>::Real>

Source§

fn get_vt_mut(&mut self) -> ArrayViewMut2<'_, Self::A>

Source§

fn to_qr(self) -> Result<QR<Self::A>>

Convert to a QR Decomposition.
Source§

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

Compute a singular value decomposition from a range estimate Read more
Source§

fn nrows(&self) -> usize

Return the number of rows of the underlying operator
Source§

fn ncols(&self) -> usize

Return the number of columns of the underlying operator
Source§

fn rank(&self) -> usize

Return the rank of the underlying operator
Source§

fn to_mat(&self) -> Array2<Self::A>

Convert to a matrix.
Source§

fn compress(&self, compression_type: CompressionType) -> Result<SVD<Self::A>>

Compress to SVD.
Source§

fn compress_svd_rank(&self, max_rank: usize) -> Result<SVD<Self::A>>

Compress the SVD by specifying a target rank.
Source§

fn compress_svd_tolerance(&self, tol: f64) -> Result<SVD<Self::A>>

Compress the SVD by specifying a relative tolerance.

Auto Trait Implementations§

§

impl<A> Freeze for SVD<A>

§

impl<A> RefUnwindSafe for SVD<A>

§

impl<A> Send for SVD<A>
where A: Send, <A as Scalar>::Real: Send,

§

impl<A> Sync for SVD<A>
where A: Sync, <A as Scalar>::Real: Sync,

§

impl<A> Unpin for SVD<A>

§

impl<A> UnwindSafe for SVD<A>

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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
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.
Source§

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

Source§

fn vzip(self) -> V