pub struct RankRevealingQrOptions {
pub gauge: QrGauge,
pub rtol: f64,
pub atol: f64,
}Expand description
Options for column-pivoted rank-revealing QR.
Rank is the length of the leading diagonal prefix satisfying
abs(R[i,i]) > max(atol, rtol * abs(R[0,0])). Both tolerances must be
finite and non-negative. The default uses zero tolerances so callers choose
an application-specific numerical threshold explicitly.
§Examples
use tenferro_linalg::{QrGauge, RankRevealingQrOptions};
let options = RankRevealingQrOptions::default()
.gauge(QrGauge::PositiveDiagonal)
.rtol(1.0e-10)
.atol(1.0e-14);
assert_eq!(options.rtol, 1.0e-10);
assert_eq!(options.atol, 1.0e-14);Fields§
§gauge: QrGaugeQR sign or phase convention. The default is QrGauge::Raw.
rtol: f64Relative diagonal threshold. The default is 0.0.
atol: f64Absolute diagonal threshold. The default is 0.0.
Implementations§
Source§impl RankRevealingQrOptions
impl RankRevealingQrOptions
Sourcepub fn gauge(self, gauge: QrGauge) -> Self
pub fn gauge(self, gauge: QrGauge) -> Self
Return options with the requested QR gauge.
§Examples
use tenferro_linalg::{QrGauge, RankRevealingQrOptions};
let options = RankRevealingQrOptions::default().gauge(QrGauge::PositiveDiagonal);
assert_eq!(options.gauge, QrGauge::PositiveDiagonal);Trait Implementations§
Source§impl Clone for RankRevealingQrOptions
impl Clone for RankRevealingQrOptions
Source§fn clone(&self) -> RankRevealingQrOptions
fn clone(&self) -> RankRevealingQrOptions
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 moreimpl Copy for RankRevealingQrOptions
Source§impl Debug for RankRevealingQrOptions
impl Debug for RankRevealingQrOptions
Source§impl Default for RankRevealingQrOptions
impl Default for RankRevealingQrOptions
Source§impl PartialEq for RankRevealingQrOptions
impl PartialEq for RankRevealingQrOptions
Source§fn eq(&self, other: &RankRevealingQrOptions) -> bool
fn eq(&self, other: &RankRevealingQrOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RankRevealingQrOptions
Auto Trait Implementations§
impl Freeze for RankRevealingQrOptions
impl RefUnwindSafe for RankRevealingQrOptions
impl Send for RankRevealingQrOptions
impl Sync for RankRevealingQrOptions
impl Unpin for RankRevealingQrOptions
impl UnsafeUnpin for RankRevealingQrOptions
impl UnwindSafe for RankRevealingQrOptions
Blanket Implementations§
impl<T> Boilerplate for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
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