Expand description
Scalar types and traits.
This module defines the Scalar trait that all floating-point types used in DiffSol must implement. It aggregates requirements from nalgebra, faer, and num_traits to ensure compatibility with linear algebra operations.
Implementations are provided for f32 and f64.
GPU scalar types are available via ScalarCuda (requires cuda feature).
Structs§
- Scale
- A wrapper for scalar values used when scaling vectors and matrices.
Traits§
- Faer
Scalar - A
Scalarthat also satisfies faer’s numeric field requirements. - Nalgebra
Scalar - A
Scalarthat also satisfies nalgebra’s numeric field requirements. - Scalar
- A scalar type suitable for numerical computations in ODE solvers.
Functions§
- scale
- Create a
Scalewrapper from a scalar value.
Type Aliases§
- Index
Type - The index type used throughout DiffSol for indexing vectors and matrices.