pub struct CanonicalizationOptions {
pub form: CanonicalForm,
pub force: bool,
}Expand description
Options for canonicalization operations.
§Builder Pattern
use tensor4all_treetn::{CanonicalForm, CanonicalizationOptions};
let options = CanonicalizationOptions::default()
.with_form(CanonicalForm::LU)
.force();
assert!(matches!(options.form, CanonicalForm::LU));
assert!(options.force);Fields§
§form: CanonicalFormCanonical form to use (QR, LU, or CI)
force: boolIf true, always performs full canonicalization. If false, checks current state and may skip or optimize.
Implementations§
Source§impl CanonicalizationOptions
impl CanonicalizationOptions
Sourcepub fn with_form(self, form: CanonicalForm) -> Self
pub fn with_form(self, form: CanonicalForm) -> Self
Set the canonical form.
Trait Implementations§
Source§impl Clone for CanonicalizationOptions
impl Clone for CanonicalizationOptions
Source§fn clone(&self) -> CanonicalizationOptions
fn clone(&self) -> CanonicalizationOptions
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 moreSource§impl Debug for CanonicalizationOptions
impl Debug for CanonicalizationOptions
Source§impl Default for CanonicalizationOptions
impl Default for CanonicalizationOptions
impl Copy for CanonicalizationOptions
Auto Trait Implementations§
impl Freeze for CanonicalizationOptions
impl RefUnwindSafe for CanonicalizationOptions
impl Send for CanonicalizationOptions
impl Sync for CanonicalizationOptions
impl Unpin for CanonicalizationOptions
impl UnsafeUnpin for CanonicalizationOptions
impl UnwindSafe for CanonicalizationOptions
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
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