pub enum ScalarSurrogateBuildError {
SigmaGridMismatch {
expected: usize,
actual: usize,
},
InvalidChebyshevBox {
n_max: f64,
m: usize,
},
InsufficientAccuracyOnBox {
n_max: f64,
m: usize,
max_rel_err: f64,
tolerance: f64,
},
}Expand description
Errors from scalar surrogate plan construction.
Variants§
SigmaGridMismatch
sigma flat length disagrees with the matrix grid size.
InvalidChebyshevBox
A Chebyshev-node build was given n_max ≤ 0 or M < 2.
InsufficientAccuracyOnBox
The Chebyshev interpolant cannot reach target accuracy on the
requested [0, n_max] box with M nodes — the box is too
wide for the σ profile. Chebyshev converges exponentially in
M for smooth T(n) = exp(-n σ), but if max(n_max · σ) is
large the interpolant loses precision. Callers should either
shrink n_max (preferred — tighter fit-exploration bounds
fix this) or increase M. Codex PR #475 round-2 P2.
Trait Implementations§
Source§impl Debug for ScalarSurrogateBuildError
impl Debug for ScalarSurrogateBuildError
Source§impl Display for ScalarSurrogateBuildError
impl Display for ScalarSurrogateBuildError
Source§impl Error for ScalarSurrogateBuildError
impl Error for ScalarSurrogateBuildError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ScalarSurrogateBuildError
impl RefUnwindSafe for ScalarSurrogateBuildError
impl Send for ScalarSurrogateBuildError
impl Sync for ScalarSurrogateBuildError
impl Unpin for ScalarSurrogateBuildError
impl UnsafeUnpin for ScalarSurrogateBuildError
impl UnwindSafe for ScalarSurrogateBuildError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.