Skip to main content

LinalgScalar

Trait LinalgScalar 

Source
pub trait LinalgScalar: Inexact + LinalgScalar<LinalgReal: Float + LinalgFloat> {
    type Complex: ComplexFloat;
}
Expand description

The element types of the linear algebra primitives (lax::linalg): f32, f64, c64, and c128. The eigenvalues of eigh and the singular values of svd have the real type Real.

Required Associated Types§

Source

type Complex: ComplexFloat

The complex type of the results of eig (c64 for f32 and c64, c128 for f64 and c128).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl LinalgScalar for f32

Source§

impl LinalgScalar for f64

Implementors§