47 const idx_t m = nrows(
A);
48 const idx_t n = ncols(
A);
51 uplo == Uplo::LowerHessenberg ||
uplo == Uplo::Upper ||
52 uplo == Uplo::Lower ||
uplo == Uplo::StrictUpper ||
53 uplo == Uplo::StrictLower);
55 if (
uplo == Uplo::UpperHessenberg) {
56 for (idx_t j = 0; j < n; ++j)
57 for (idx_t i = 0; i < ((j < m) ? j + 2 : m); ++i)
58 if (
isnan(
A(i, j)))
return true;
61 else if (
uplo == Uplo::Upper) {
62 for (idx_t j = 0; j < n; ++j)
63 for (idx_t i = 0; i < ((j < m) ? j + 1 : m); ++i)
64 if (
isnan(
A(i, j)))
return true;
67 else if (
uplo == Uplo::StrictUpper) {
68 for (idx_t j = 0; j < n; ++j)
69 for (idx_t i = 0; i < ((j < m) ? j : m); ++i)
70 if (
isnan(
A(i, j)))
return true;
73 else if (
uplo == Uplo::LowerHessenberg) {
74 for (idx_t j = 0; j < n; ++j)
75 for (idx_t i = ((j > 1) ? j - 1 : 0); i < m; ++i)
76 if (
isnan(
A(i, j)))
return true;
79 else if (
uplo == Uplo::Lower) {
80 for (idx_t j = 0; j < n; ++j)
81 for (idx_t i = j; i < m; ++i)
82 if (
isnan(
A(i, j)))
return true;
85 else if (
uplo == Uplo::StrictLower) {
86 for (idx_t j = 0; j < n; ++j)
87 for (idx_t i = j + 1; i < m; ++i)
88 if (
isnan(
A(i, j)))
return true;
93 for (idx_t j = 0; j < n; ++j)
94 for (idx_t i = 0; i < m; ++i)
95 if (
isnan(
A(i, j)))
return true;
#define tlapack_check(cond)
Throw an error if cond is false.
Definition exceptionHandling.hpp:98
typename traits::real_type_traits< Types..., int >::type real_type
The common real type of the list of types.
Definition scalar_type_traits.hpp:113