pub trait ModelSpec: Clone {
type Scalar: Scalar;
type Dim: Dimension;
// Required method
fn model_size(&self) -> <Self::Dim as Dimension>::Pattern;
}Expand description
Model space, the linear space where the system state is represented.
For an ODE in a form $dx/dt = f(x)$, the linear space where $x$ belongs to is the model space. It is usually $\mathbb{R}^n$ or $\mathbb{C}^n$, but this crate allows it in multi-dimensional e.g. $\mathbb{C}^{N_x \times N_y}$ to support spectral methods for PDE whose state space is Fourier coefficients.
Required Associated Types§
Required Methods§
Sourcefn model_size(&self) -> <Self::Dim as Dimension>::Pattern
fn model_size(&self) -> <Self::Dim as Dimension>::Pattern
Number of scalars to describe the system state.
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.