Skip to main content

LinalgScalar

Trait LinalgScalar 

Source
pub trait LinalgScalar: TensorScalar + Sealed {
    type Complex: TensorScalar;
}
Expand description

Scalar types supported by statically typed linear algebra methods.

§Examples

use tenferro_linalg::LinalgScalar;

fn accepts_linalg_scalar<T: LinalgScalar>() {}
accepts_linalg_scalar::<f64>();

Required Associated Types§

Source

type Complex: TensorScalar

Complex counterpart used by general eigendecomposition.

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 LinalgScalar for f32

Source§

impl LinalgScalar for f64

Source§

impl LinalgScalar for Complex32

Source§

impl LinalgScalar for Complex64

Implementors§