pub enum ACosHInputErrors<RawScalar: RawScalarTrait> {
OutOfDomain {
value: RawScalar,
backtrace: Backtrace,
},
InvalidArgument {
source: <RawScalar as RawScalarTrait>::ValidationErrors,
},
}
Expand description
Errors that can occur during the computation of the inverse hyperbolic cosine.
This enum handles issues related to invalid input arguments, such as NaN or\ninfinity, as determined by the validation policy (e.g., StrictFinitePolicy
).\nIt also includes domain errors specific to acosh
, which is defined for x >= 1
\nfor real numbers and for all complex numbers.
§Type Parameters
RawScalar
: The numeric type (e.g.,f64
,Complex<f64>
), implementingRawScalarTrait
.\n<RawScalar as RawScalarTrait>::ValidationErrors
provides details of validation failures.
§Variants
InvalidArgument
: Input is invalid (e.g., NaN, infinity). Wraps<RawScalar as RawScalarTrait>::ValidationErrors
.\n-DomainError
: Input is outside the function’s domain (e.g.,x < 1
for realacosh
).
Variants§
OutOfDomain
The input value is outside the mathematical domain of the function.
For example, for real acosh(x)
, x
must be >= 1
. For real atanh(x)
, |x|
must be < 1
.
For complex versions, this refers to values on the branch cuts if they are explicitly excluded.
InvalidArgument
The input argument is invalid (e.g., NaN or infinity).
This error is raised if the input value fails the validation
(using the chosen implementation of ValidationPolicy
).
It contains the underlying error from the validation mechanism.
Fields
source: <RawScalar as RawScalarTrait>::ValidationErrors
The source error that occurred during validation.
Trait Implementations§
Source§impl<RawScalar: Debug + RawScalarTrait> Debug for ACosHInputErrors<RawScalar>
impl<RawScalar: Debug + RawScalarTrait> Debug for ACosHInputErrors<RawScalar>
Source§impl<RawScalar: RawScalarTrait> Display for ACosHInputErrors<RawScalar>
impl<RawScalar: RawScalarTrait> Display for ACosHInputErrors<RawScalar>
Source§impl<RawScalar: RawScalarTrait> Error for ACosHInputErrors<RawScalar>
impl<RawScalar: RawScalarTrait> Error for ACosHInputErrors<RawScalar>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Source§fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
error_generic_member_access
)