pub struct NumericalRange {
pub boundary_samples: Vec<(f64, f64)>,
pub is_normal: bool,
}Expand description
Represents the numerical range (field of values) of an operator.
Fields§
§boundary_samples: Vec<(f64, f64)>Boundary points sampled at regular angles.
is_normal: boolWhether the operator is normal (numerical range = convex hull of spectrum).
Implementations§
Source§impl NumericalRange
impl NumericalRange
Sourcepub fn from_eigenvalues(eigenvalues: &[f64]) -> Self
pub fn from_eigenvalues(eigenvalues: &[f64]) -> Self
Creates a numerical range from eigenvalues (normal operator case).
Sourcepub fn numerical_radius(&self) -> f64
pub fn numerical_radius(&self) -> f64
Returns the numerical radius: max{|z| : z in W(A)}.
Sourcepub fn contains_zero(&self, tol: f64) -> bool
pub fn contains_zero(&self, tol: f64) -> bool
Checks if 0 is in the numerical range (relevant for invertibility).
Trait Implementations§
Source§impl Clone for NumericalRange
impl Clone for NumericalRange
Source§fn clone(&self) -> NumericalRange
fn clone(&self) -> NumericalRange
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 moreAuto Trait Implementations§
impl Freeze for NumericalRange
impl RefUnwindSafe for NumericalRange
impl Send for NumericalRange
impl Sync for NumericalRange
impl Unpin for NumericalRange
impl UnsafeUnpin for NumericalRange
impl UnwindSafe for NumericalRange
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