ATanRealErrors

Type Alias ATanRealErrors 

Source
pub type ATanRealErrors<RawReal> = FunctionErrors<ATanRealInputErrors<RawReal>, <RawReal as RawScalarTrait>::ValidationErrors>;
Expand description

A type alias for FunctionErrors, specialized for errors during inverse tangent computation on a real number.

Represents failures from ATan::try_atan().

§Type Parameters

  • RawReal: Implements RawRealTrait. Defines input error type via ErrIn<RawReal> and output raw error via <RawReal as RawScalarTrait>::ValidationErrors.

§Variants

  • Input { source: ErrIn<RawReal> }: Input was invalid (e.g., NaN, Infinity).
  • Output { source: <RawReal as RawScalarTrait>::ValidationErrors }: Computed output was invalid (e.g., NaN, Infinity).

Aliased Type§

pub enum ATanRealErrors<RawReal> {
    Input {
        source: ATanRealInputErrors<RawReal>,
    },
    Output {
        source: <RawReal as RawScalarTrait>::ValidationErrors,
    },
}

Variants§

§

Input

Error due to invalid input values.

This variant is returned when initial validation of the function’s arguments fails according to the defined validation policy (e.g., StrictFinitePolicy) or due to domain-specific constraints (e.g., negative input to a real logarithm).

Fields

§source: ATanRealInputErrors<RawReal>

The source error that occurred during input validation. This provides specific details about why the input was considered invalid.

§

Output

Error due to the computed output failing validation.

This variant is returned if the result of the computation, even from valid inputs, fails validation according to the defined policy. This typically means the result was non-finite (NaN or Infinity) or otherwise did not meet the criteria for a valid output.

Fields

§source: <RawReal as RawScalarTrait>::ValidationErrors

The source error that occurred during output validation. This provides specific details about why the computed output was considered invalid.