<T>LAPACK 0.1.2
C++ Template Linear Algebra PACKage
|
Classes | |
struct | tlapack::EcOpts |
Options for error checking. More... | |
struct | tlapack::ErrorCheck |
Descriptor for Exception Handling. More... | |
Macros | |
#define | tlapack_check(cond) |
Throw an error if cond is false. | |
#define | tlapack_check_false(cond) |
Throw an error if cond is true. | |
#define | TLAPACK_DEFAULT_INFCHECK true |
Default behavior of checks for Infs. | |
#define | TLAPACK_DEFAULT_NANCHECK true |
Default behavior of checks for NaNs. | |
#define | tlapack_error(info, detailedInfo) |
Error handler. | |
#define | tlapack_error_if(cond, info, detailedInfo) |
Error handler with conditional. | |
#define | tlapack_warning(info, detailedInfo) |
Warning handler. | |
Functions | |
std::string | tlapack::internal::error_msg (int info, const std::string &detailedInfo) |
Create a string with the error message. | |
template<TLAPACK_MATRIX matrix_t> | |
bool | tlapack::hasinf (BandAccess accessType, const matrix_t &A) noexcept |
Returns true if and only if A has an infinite entry. | |
template<TLAPACK_VECTOR vector_t> | |
bool | tlapack::hasinf (const vector_t &x) noexcept |
Returns true if and only if x has an infinite entry. | |
template<TLAPACK_UPLO uplo_t, TLAPACK_MATRIX matrix_t> | |
bool | tlapack::hasinf (uplo_t uplo, const matrix_t &A) |
Returns true if and only if A has an infinite entry. | |
template<TLAPACK_MATRIX matrix_t> | |
bool | tlapack::hasnan (BandAccess accessType, const matrix_t &A) noexcept |
Returns true if and only if A has an NaN entry. | |
template<TLAPACK_VECTOR vector_t> | |
bool | tlapack::hasnan (const vector_t &x) noexcept |
Returns true if and only if x has an NaN entry. | |
template<TLAPACK_UPLO uplo_t, TLAPACK_MATRIX matrix_t> | |
bool | tlapack::hasnan (uplo_t uplo, const matrix_t &A) |
Returns true if and only if A has an NaN entry. | |
Variables | |
constexpr ErrorCheck | tlapack::NO_ERROR_CHECK = {false, false, false} |
Options to disable error checking. | |
#define tlapack_check | ( | cond | ) |
Throw an error if cond is false.
ex: lapack_check( 1 > 2 ); throws an error.
#define tlapack_check_false | ( | cond | ) |
Throw an error if cond is true.
ex: tlapack_check_false( 1 < 2 ); throws an error.
#define TLAPACK_DEFAULT_INFCHECK true |
Default behavior of checks for Infs.
Checks can be activated/deactivated at runtime
#define TLAPACK_DEFAULT_NANCHECK true |
Default behavior of checks for NaNs.
Checks can be activated/deactivated at runtime
#define tlapack_error | ( | info, | |
detailedInfo | |||
) |
Error handler.
[in] | info | Code of the error. |
[in] | detailedInfo | String with information about the error. |
#define tlapack_error_if | ( | cond, | |
info, | |||
detailedInfo | |||
) |
Error handler with conditional.
[in] | cond | If true, tlapack error is thrown. |
[in] | info | Code of the error. |
[in] | detailedInfo | String with information about the error. |
#define tlapack_warning | ( | info, | |
detailedInfo | |||
) |
Warning handler.
[in] | info | Code of the warning. |
[in] | detailedInfo | String with information about the warning. |
Create a string with the error message.
info | Error code. |
detailedInfo | Details about the error. |
|
noexcept |
Returns true if and only if A has an infinite entry.
Specific implementation for band access types.
|
noexcept |
Returns true if and only if x has an infinite entry.
[in] | x | vector. |
bool tlapack::hasinf | ( | uplo_t | uplo, |
const matrix_t & | A | ||
) |
Returns true if and only if A has an infinite entry.
uplo_t | Type of access inside the algorithm. Either Uplo or any type that implements operator Uplo(). |
[in] | uplo | Determines the entries of A that will be checked. The following access types are allowed: Uplo::General, Uplo::UpperHessenberg, Uplo::LowerHessenberg, Uplo::Upper, Uplo::Lower, Uplo::StrictUpper, Uplo::StrictLower. |
[in] | A | matrix. |
|
noexcept |
Returns true if and only if A has an NaN entry.
Specific implementation for band access types.
|
noexcept |
Returns true if and only if x has an NaN entry.
[in] | x | vector. |
bool tlapack::hasnan | ( | uplo_t | uplo, |
const matrix_t & | A | ||
) |
Returns true if and only if A has an NaN entry.
uplo_t | Type of access inside the algorithm. Either Uplo or any type that implements operator Uplo(). |
[in] | uplo | Determines the entries of A that will be checked. The following access types are allowed: Uplo::General, Uplo::UpperHessenberg, Uplo::LowerHessenberg, Uplo::Upper, Uplo::Lower, Uplo::StrictUpper, Uplo::StrictLower. |
[in] | A | matrix. |