pub enum ComplexityClass {
SublinearNnz,
SqrtCondition,
Linear,
Quadratic,
Cubic,
}Expand description
Qualitative complexity class.
Variants§
SublinearNnz
O(nnz * log(1/eps)) – sublinear in matrix dimension.
SqrtCondition
O(n * sqrt(kappa)) – CG-like.
Linear
O(n * nnz_per_row) – linear scan.
Quadratic
O(n^2) or worse – superlinear.
Cubic
O(n^3) – dense factorisation.
Trait Implementations§
Source§impl Clone for ComplexityClass
impl Clone for ComplexityClass
Source§fn clone(&self) -> ComplexityClass
fn clone(&self) -> ComplexityClass
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 ComplexityClass
Source§impl Debug for ComplexityClass
impl Debug for ComplexityClass
Source§impl<'de> Deserialize<'de> for ComplexityClass
impl<'de> Deserialize<'de> for ComplexityClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ComplexityClass
Source§impl PartialEq for ComplexityClass
impl PartialEq for ComplexityClass
Source§fn eq(&self, other: &ComplexityClass) -> bool
fn eq(&self, other: &ComplexityClass) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ComplexityClass
impl Serialize for ComplexityClass
impl StructuralPartialEq for ComplexityClass
Auto Trait Implementations§
impl Freeze for ComplexityClass
impl RefUnwindSafe for ComplexityClass
impl Send for ComplexityClass
impl Sync for ComplexityClass
impl Unpin for ComplexityClass
impl UnsafeUnpin for ComplexityClass
impl UnwindSafe for ComplexityClass
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