pub struct GradcheckReport { /* private fields */ }Expand description
gradcheck の結果。不一致は Err ではなく passed() == false の Ok で返す。
最悪要素は絶対誤差が最大の要素(非有限は無限大として扱い、同値なら最初のもの)。
Implementations§
Source§impl GradcheckReport
impl GradcheckReport
Sourcepub fn max_abs_error(&self) -> f64
pub fn max_abs_error(&self) -> f64
最大絶対誤差(非有限の要素があれば inf)。
Sourcepub fn max_rel_error(&self) -> f64
pub fn max_rel_error(&self) -> f64
最大相対誤差(分母は max(|解析|, |数値|, tau)。非有限の要素があれば inf)。
Sourcepub fn worst_location(&self) -> (usize, usize, usize)
pub fn worst_location(&self) -> (usize, usize, usize)
最悪要素の位置 (入力番号, 出力の平坦添字, 入力の平坦添字)。
Sourcepub fn checked_elements(&self) -> usize
pub fn checked_elements(&self) -> usize
突合した要素数(出力要素数 × Σ入力要素数)。
Trait Implementations§
Source§impl Clone for GradcheckReport
impl Clone for GradcheckReport
Source§fn clone(&self) -> GradcheckReport
fn clone(&self) -> GradcheckReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GradcheckReport
impl Debug for GradcheckReport
Source§impl PartialEq for GradcheckReport
impl PartialEq for GradcheckReport
impl StructuralPartialEq for GradcheckReport
Auto Trait Implementations§
impl Freeze for GradcheckReport
impl RefUnwindSafe for GradcheckReport
impl Send for GradcheckReport
impl Sync for GradcheckReport
impl Unpin for GradcheckReport
impl UnsafeUnpin for GradcheckReport
impl UnwindSafe for GradcheckReport
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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