pub struct SpectralDiffMatrix {
pub degree: usize,
pub matrix: Vec<Vec<f64>>,
pub nodes: Vec<f64>,
}Expand description
Spectral differentiation matrix and related operations.
Fields§
§degree: usizePolynomial degree N.
matrix: Vec<Vec<f64>>The (N+1)×(N+1) Chebyshev differentiation matrix.
nodes: Vec<f64>Gauss-Lobatto nodes.
Implementations§
Source§impl SpectralDiffMatrix
impl SpectralDiffMatrix
Sourcepub fn spectral_radius(&self) -> f64
pub fn spectral_radius(&self) -> f64
Spectral radius (max row absolute sum).
Sourcepub fn apply_second(&self, u: &[f64]) -> Vec<f64>
pub fn apply_second(&self, u: &[f64]) -> Vec<f64>
Apply D² (second derivative).
Sourcepub fn num_points(&self) -> usize
pub fn num_points(&self) -> usize
Number of grid points (N+1).
Auto Trait Implementations§
impl Freeze for SpectralDiffMatrix
impl RefUnwindSafe for SpectralDiffMatrix
impl Send for SpectralDiffMatrix
impl Sync for SpectralDiffMatrix
impl Unpin for SpectralDiffMatrix
impl UnsafeUnpin for SpectralDiffMatrix
impl UnwindSafe for SpectralDiffMatrix
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