FunctionalError

Enum FunctionalError 

Source
pub enum FunctionalError {
Show 16 variants DimensionMismatch { expected: usize, actual: usize, }, NotComplete { reason: String, }, NotBounded { description: String, }, NotCompact { reason: String, }, NotInvertible { reason: String, }, EigenvalueError { reason: String, }, SpectralDecompositionError { reason: String, }, FredholmIndexUndefined { reason: String, }, SobolevError { description: String, }, NormError { description: String, }, InnerProductError { description: String, }, ConvergenceError { iterations: usize, reason: String, }, NumericalInstability { operation: String, details: String, }, InvalidParameters { description: String, }, MeasureError(MeasureError), CalculusError(CalculusError),
}
Expand description

Errors that can occur during functional analysis operations.

Variants§

§

DimensionMismatch

Dimension mismatch between spaces or operators.

Fields

§expected: usize

Expected dimension.

§actual: usize

Actual dimension encountered.

§

NotComplete

The space does not satisfy required completeness properties.

Fields

§reason: String

Description of why completeness fails.

§

NotBounded

The operator is not bounded.

Fields

§description: String

Description of the unboundedness.

§

NotCompact

The operator is not compact.

Fields

§reason: String

Reason for non-compactness.

§

NotInvertible

The operator does not have a valid inverse.

Fields

§reason: String

Reason for non-invertibility.

§

EigenvalueError

Eigenvalue computation failed.

Fields

§reason: String

Description of the failure.

§

SpectralDecompositionError

Spectral decomposition failed.

Fields

§reason: String

Description of the failure.

§

FredholmIndexUndefined

The Fredholm index is undefined.

Fields

§reason: String

Reason why the index is undefined.

§

SobolevError

Sobolev space construction failed.

Fields

§description: String

Description of the Sobolev space error.

§

NormError

Norm computation failed or is undefined.

Fields

§description: String

Description of the norm error.

§

InnerProductError

Inner product computation failed.

Fields

§description: String

Description of the inner product error.

§

ConvergenceError

Convergence conditions not satisfied.

Fields

§iterations: usize

Number of iterations attempted.

§reason: String

Reason for convergence failure.

§

NumericalInstability

Numerical instability detected.

Fields

§operation: String

The operation that became unstable.

§details: String

Details about the instability.

§

InvalidParameters

Invalid parameters provided.

Fields

§description: String

Description of the invalid parameters.

§

MeasureError(MeasureError)

Error from amari-measure.

§

CalculusError(CalculusError)

Error from amari-calculus.

Implementations§

Source§

impl FunctionalError

Source

pub fn dimension_mismatch(expected: usize, actual: usize) -> Self

Create a dimension mismatch error.

Source

pub fn not_complete(reason: impl Into<String>) -> Self

Create a not complete error.

Source

pub fn not_bounded(description: impl Into<String>) -> Self

Create a not bounded error.

Source

pub fn not_compact(reason: impl Into<String>) -> Self

Create a not compact error.

Source

pub fn not_invertible(reason: impl Into<String>) -> Self

Create a not invertible error.

Source

pub fn eigenvalue_error(reason: impl Into<String>) -> Self

Create an eigenvalue error.

Source

pub fn spectral_decomposition_error(reason: impl Into<String>) -> Self

Create a spectral decomposition error.

Source

pub fn fredholm_index_undefined(reason: impl Into<String>) -> Self

Create a Fredholm index undefined error.

Source

pub fn sobolev_error(description: impl Into<String>) -> Self

Create a Sobolev error.

Source

pub fn norm_error(description: impl Into<String>) -> Self

Create a norm error.

Source

pub fn inner_product_error(description: impl Into<String>) -> Self

Create an inner product error.

Source

pub fn convergence_error(iterations: usize, reason: impl Into<String>) -> Self

Create a convergence error.

Source

pub fn numerical_instability( operation: impl Into<String>, details: impl Into<String>, ) -> Self

Create a numerical instability error.

Source

pub fn invalid_parameters(description: impl Into<String>) -> Self

Create an invalid parameters error.

Trait Implementations§

Source§

impl Clone for FunctionalError

Source§

fn clone(&self) -> FunctionalError

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FunctionalError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for FunctionalError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for FunctionalError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<CalculusError> for FunctionalError

Source§

fn from(source: CalculusError) -> Self

Converts to this type from the input type.
Source§

impl From<MeasureError> for FunctionalError

Source§

fn from(source: MeasureError) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for FunctionalError

Source§

fn eq(&self, other: &FunctionalError) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for FunctionalError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V