pub struct DifferentialReport {
pub real: DifferentialMaximum,
pub imaginary: DifferentialMaximum,
pub amplitude: DifferentialMaximum,
pub phase: Option<DifferentialMaximum>,
pub magnitude_squared: DifferentialMaximum,
pub phase_cells: usize,
pub worst_metric: ConformanceMetric,
pub worst_row: usize,
pub worst_column: usize,
}Expand description
Complete comparison report shared by portable and accelerated providers.
Fields§
§real: DifferentialMaximumMaximum real-component error.
imaginary: DifferentialMaximumMaximum imaginary-component error.
amplitude: DifferentialMaximumMaximum amplitude error.
phase: Option<DifferentialMaximum>Maximum wrapped-phase error, absent when every cell is below the floor.
magnitude_squared: DifferentialMaximumMaximum squared-magnitude error.
phase_cells: usizeNumber of cells whose phase was compared.
worst_metric: ConformanceMetricMetric with the largest error-to-limit ratio.
worst_row: usizeRow containing the worst normalized error.
worst_column: usizeColumn containing the worst normalized error.
Implementations§
Source§impl DifferentialReport
impl DifferentialReport
Sourcepub fn max_component_absolute_error(&self) -> f64
pub fn max_component_absolute_error(&self) -> f64
Returns the largest absolute Cartesian-component error.
Sourcepub fn max_phase_absolute_error(&self) -> f64
pub fn max_phase_absolute_error(&self) -> f64
Returns the largest compared absolute wrapped-phase error.
A field containing only below-floor cancellation cells returns zero because phase is deliberately undefined there.
Trait Implementations§
Source§impl Clone for DifferentialReport
impl Clone for DifferentialReport
Source§fn clone(&self) -> DifferentialReport
fn clone(&self) -> DifferentialReport
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 DifferentialReport
impl Debug for DifferentialReport
Source§impl PartialEq for DifferentialReport
impl PartialEq for DifferentialReport
impl StructuralPartialEq for DifferentialReport
Auto Trait Implementations§
impl Freeze for DifferentialReport
impl RefUnwindSafe for DifferentialReport
impl Send for DifferentialReport
impl Sync for DifferentialReport
impl Unpin for DifferentialReport
impl UnsafeUnpin for DifferentialReport
impl UnwindSafe for DifferentialReport
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