Skip to main content

Module scalar

Module scalar 

Source
Expand description

Common scalar trait for matrix and tensor operations.

The Scalar trait provides a unified interface for numeric types used in matrix cross interpolation and tensor train operations. It is implemented for f64, f32, Complex64, and Complex32.

The scalar_tests! macro generates dual f64/Complex64 test variants from a single generic test function.

Traitsยง

Scalar
Common scalar trait for matrix and tensor operations.