ParaMonte Fortran 2.0.0
Parallel Monte Carlo and Machine Learning Library
See the latest version documentation. |
This module contains procedures and generic interfaces for testing for exceptional cases at runtime.
More...
Data Types | |
interface | getInfNeg |
Generate and return an IEEE-compliant negative infinity. More... | |
interface | getInfPos |
Generate and return an IEEE-compliant positive infinity. More... | |
interface | getNAN |
Generate and return an IEEE-compliant quiet NAN (Not a Number).More... | |
interface | isAddOutflow |
Generate and return .true. if and only if the addition of the two input integer , complex , or real values causes runtime negative or positive outflow (overflow). More... | |
interface | isAddOutflowNeg |
Generate and return .true. if and only if the addition of the two input integer , complex , or real values causes runtime negative outflow (overflow). More... | |
interface | isAddOutflowPos |
Generate and return .true. if and only if the addition of the two input integer , complex , or real values causes runtime positive outflow (overflow). More... | |
interface | isInf |
Generate and return .true. if the input value is an IEEE-compliant negative or positive infinity. If the input value is a complex number, then the output is .true. if any of the two real or imaginary components or both components are either negative or positive infinities. More... | |
interface | isInfNeg |
Generate and return .true. if the input value is an IEEE-compliant negative infinity.More... | |
interface | isInfPos |
Generate and return .true. if the input value is an IEEE-compliant positive infinity.More... | |
interface | isNAN |
Generate and return .true. if the input value is an IEEE-compliant NAN (Not a Number) or if the input value x is not equal to its input copy xcopy , a characteristic behavior of NAN values.More... | |
interface | setInfNeg |
Return an IEEE-compliant negative infinity. More... | |
interface | setInfPos |
Return an IEEE-compliant positive infinity. More... | |
interface | setNAN |
Return an IEEE-compliant quiet NAN (Not a Number).More... | |
Variables | |
character(*, SK), parameter | MODULE_NAME = "@pm_except" |
This module contains procedures and generic interfaces for testing for exceptional cases at runtime.
Three exceptional cases are currently handled by the procedures of this module,
a + b
outflow: a < 0 && b < 0 && a < min - b
. 0 < a && 0 < b && max - b < a
. min
and max
refer to the minimum and maximum possible values for the type and kind of the pair (a,b)
.real
and complex
IEEE-compliant infinity values.real
and complex
IEEE-compliant NaN
(Not A Number) values.
Final Remarks ⛓
If you believe this algorithm or its documentation can be improved, we appreciate your contribution and help to edit this page's documentation and source file on GitHub.
For details on the naming abbreviations, see this page.
For details on the naming conventions, see this page.
This software is distributed under the MIT license with additional terms outlined below.
This software is available to the public under a highly permissive license.
Help us justify its continued development and maintenance by acknowledging its benefit to society, distributing it, and contributing to it.
character(*, SK), parameter pm_except::MODULE_NAME = "@pm_except" |
Definition at line 52 of file pm_except.F90.