Skip to main content

MatrixScalar

Trait MatrixScalar 

Source
pub trait MatrixScalar:
    Clone
    + Copy
    + Zero
    + One
    + Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self>
    + Div<Output = Self>
    + Neg<Output = Self>
    + Default
    + Send
    + Sync
    + BlasMul
    + 'static {
    // Required method
    fn matrix_abs_sq(self) -> f64;
}
Expand description

Scalar bound for dense backend matrix utilities.

This is the storage/linalg-layer scalar trait. Higher-level crates may extend it with domain-specific methods, but matrix utilities only rely on these algebraic operations and absolute-value comparisons.

Required Methods§

Source

fn matrix_abs_sq(self) -> f64

Squared absolute value as f64.

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

Source§

impl MatrixScalar for f64

Source§

impl MatrixScalar for Complex32

Source§

impl MatrixScalar for Complex64

Implementors§