pub enum BalanceError {
NonFiniteInput,
}Expand description
Balancing failed because the input contains a nonfinite entry.
§Examples
use dyn_stack::{MemBuffer, MemStack};
use faer::Par;
use faer::linalg::evd::*;
let mut a = faer::mat![[f64::NAN]];
let mut mem = MemBuffer::new(balance_scratch());
assert_eq!(
balance_in_place(
a.as_mut(),
&mut [0],
&mut [1.0],
Par::Seq,
MemStack::new(&mut mem)
),
Err(BalanceError::NonFiniteInput)
);Variants§
NonFiniteInput
NaN or infinity in the input; the matrix is unchanged.
Trait Implementations§
Source§impl Clone for BalanceError
impl Clone for BalanceError
impl Copy for BalanceError
Source§impl Debug for BalanceError
impl Debug for BalanceError
impl Eq for BalanceError
Source§impl PartialEq for BalanceError
impl PartialEq for BalanceError
impl StructuralPartialEq for BalanceError
Auto Trait Implementations§
impl Freeze for BalanceError
impl RefUnwindSafe for BalanceError
impl Send for BalanceError
impl Sync for BalanceError
impl Unpin for BalanceError
impl UnsafeUnpin for BalanceError
impl UnwindSafe for BalanceError
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,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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