Skip to main content

SVDScalar

Trait SVDScalar 

Source
pub trait SVDScalar:
    TTScalar
    + ComplexFloat
    + Default
    + Copy
    + BackendLinalgScalar
    + 'static {
    // Required methods
    fn linalg_real_to_f64(real: <Self as TensorScalar>::Real) -> f64;
    fn from_linalg_real(real: <Self as TensorScalar>::Real) -> Self;
}
Expand description

Trait bounds for SVD-compatible scalars

Required Methods§

Source

fn linalg_real_to_f64(real: <Self as TensorScalar>::Real) -> f64

Convert a backend singular value into f64 for truncation logic.

Source

fn from_linalg_real(real: <Self as TensorScalar>::Real) -> Self

Promote a backend singular value into the matrix scalar type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SVDScalar for f64

Source§

fn linalg_real_to_f64(real: <Self as TensorScalar>::Real) -> f64

Source§

fn from_linalg_real(real: <Self as TensorScalar>::Real) -> Self

Source§

impl SVDScalar for Complex64

Source§

fn linalg_real_to_f64(real: <Self as TensorScalar>::Real) -> f64

Source§

fn from_linalg_real(real: <Self as TensorScalar>::Real) -> Self

Implementors§