pub struct MatrixGridFn1D<F: SemiflowFloat = f64, const M: usize = 2> {
pub grid: Grid1D<F>,
pub values: Vec<F>,
}Expand description
Multi-component grid state: u : Grid₁D → ℝᴹ.
Internal layout: row-major flat Vec<F> of length N * M; component i
at grid point k is at index k * M + i. Optimal for the per-grid-point
matrix-vector multiply in Phase 2 (math §33.3).
Implements State<F> with per-component delegation (math §33.2, ADR-0082).
§Generic parameters
F: SemiflowFloat— scalar float type (defaultf64).M: usize— number of coupled components (const generic).
Fields§
§grid: Grid1D<F>Reference grid geometry (immutable after construction).
values: Vec<F>Row-major flat values: values[k * M + i] = component i at node k.
Implementations§
Source§impl<F: SemiflowFloat, const M: usize> MatrixGridFn1D<F, M>
impl<F: SemiflowFloat, const M: usize> MatrixGridFn1D<F, M>
Trait Implementations§
Source§impl<F: Clone + SemiflowFloat, const M: usize> Clone for MatrixGridFn1D<F, M>
impl<F: Clone + SemiflowFloat, const M: usize> Clone for MatrixGridFn1D<F, M>
Source§impl<F: Debug + SemiflowFloat, const M: usize> Debug for MatrixGridFn1D<F, M>
impl<F: Debug + SemiflowFloat, const M: usize> Debug for MatrixGridFn1D<F, M>
Source§impl<F: SemiflowFloat, const M: usize> State<F> for MatrixGridFn1D<F, M>
impl<F: SemiflowFloat, const M: usize> State<F> for MatrixGridFn1D<F, M>
Auto Trait Implementations§
impl<F, const M: usize> Freeze for MatrixGridFn1D<F, M>
impl<F, const M: usize> RefUnwindSafe for MatrixGridFn1D<F, M>
impl<F, const M: usize> Send for MatrixGridFn1D<F, M>
impl<F, const M: usize> Sync for MatrixGridFn1D<F, M>
impl<F, const M: usize> Unpin for MatrixGridFn1D<F, M>
impl<F, const M: usize> UnsafeUnpin for MatrixGridFn1D<F, M>
impl<F, const M: usize> UnwindSafe for MatrixGridFn1D<F, M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more