pub trait RelDiff {
type A: Scalar;
// Required methods
fn rel_diff_fro(
first: ArrayView2<'_, Self::A>,
second: ArrayView2<'_, Self::A>,
) -> <<Self as RelDiff>::A as Scalar>::Real;
fn rel_diff_l2(
first: ArrayView1<'_, Self::A>,
second: ArrayView1<'_, Self::A>,
) -> <<Self as RelDiff>::A as Scalar>::Real;
}
Required Associated Types§
Required Methods§
Sourcefn rel_diff_fro(
first: ArrayView2<'_, Self::A>,
second: ArrayView2<'_, Self::A>,
) -> <<Self as RelDiff>::A as Scalar>::Real
fn rel_diff_fro( first: ArrayView2<'_, Self::A>, second: ArrayView2<'_, Self::A>, ) -> <<Self as RelDiff>::A as Scalar>::Real
Return the relative Frobenius norm difference of first
and second
.
Sourcefn rel_diff_l2(
first: ArrayView1<'_, Self::A>,
second: ArrayView1<'_, Self::A>,
) -> <<Self as RelDiff>::A as Scalar>::Real
fn rel_diff_l2( first: ArrayView1<'_, Self::A>, second: ArrayView1<'_, Self::A>, ) -> <<Self as RelDiff>::A as Scalar>::Real
Return the relative l2 vector norm difference of first
and second
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.