#[non_exhaustive]pub struct EigvalshOptions {
pub driver: EighDriver,
}Expand description
Options for Hermitian eigenvalues only.
§Examples
use tenferro_linalg::{EighDriver, EigvalshOptions};
let options = EigvalshOptions::default().driver(EighDriver::Jacobi);
assert_eq!(options.driver, EighDriver::Jacobi);Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.driver: EighDriverAlgorithm family: a hint for providers that can choose a driver; the current CPU provider ignores it.
Implementations§
Source§impl EigvalshOptions
impl EigvalshOptions
Sourcepub fn driver(self, driver: EighDriver) -> Self
pub fn driver(self, driver: EighDriver) -> Self
Return options with an explicit eigensolver driver.
§Examples
use tenferro_linalg::{EighDriver, EigvalshOptions};
let options = EigvalshOptions::default().driver(EighDriver::DivideAndConquer);
assert_eq!(options.driver, EighDriver::DivideAndConquer);Trait Implementations§
Source§impl Clone for EigvalshOptions
impl Clone for EigvalshOptions
impl Copy for EigvalshOptions
Source§impl Debug for EigvalshOptions
impl Debug for EigvalshOptions
Source§impl Default for EigvalshOptions
impl Default for EigvalshOptions
Source§impl PartialEq for EigvalshOptions
impl PartialEq for EigvalshOptions
impl StructuralPartialEq for EigvalshOptions
Auto Trait Implementations§
impl Freeze for EigvalshOptions
impl RefUnwindSafe for EigvalshOptions
impl Send for EigvalshOptions
impl Sync for EigvalshOptions
impl Unpin for EigvalshOptions
impl UnsafeUnpin for EigvalshOptions
impl UnwindSafe for EigvalshOptions
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