pub struct SpectralResult {
pub u: Array1<f64>,
pub coefficients: Array1<f64>,
pub grid: Array1<f64>,
pub residual_norm: f64,
pub num_iterations: usize,
pub computation_time: f64,
pub convergence_history: Option<Vec<f64>>,
}Expand description
Result of spectral method solutions
Fields§
§u: Array1<f64>Solution values on the grid
coefficients: Array1<f64>Spectral coefficients
grid: Array1<f64>Grid points
residual_norm: f64Residual norm
num_iterations: usizeNumber of iterations performed
computation_time: f64Computation time
convergence_history: Option<Vec<f64>>Convergence history
Trait Implementations§
Source§impl Clone for SpectralResult
impl Clone for SpectralResult
Source§fn clone(&self) -> SpectralResult
fn clone(&self) -> SpectralResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SpectralResult
impl Debug for SpectralResult
Source§impl From<SpectralResult> for PDESolution<f64>
impl From<SpectralResult> for PDESolution<f64>
Source§fn from(result: SpectralResult) -> Self
fn from(result: SpectralResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SpectralResult
impl RefUnwindSafe for SpectralResult
impl Send for SpectralResult
impl Sync for SpectralResult
impl Unpin for SpectralResult
impl UnwindSafe for SpectralResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more