46 if (
class[0] ==
'z' &&
TRANS(obj) ==
'C') {
48 Rcomplex *px = COMPLEX(x);
51 if (
class[2] !=
'T') {
55 int *pp = INTEGER(p) + 1, *pi = INTEGER(i), j, k_, k, kend,
56 up = (
class[2] ==
'C') == (ul ==
'U');
58 for (j = 0, k = 0; j < n; ++j) {
60 if (k < kend && pi[k_ = (up) ? kend - 1 : k] == j &&
61 (ISNAN(px[k_].i) || px[k_].i != 0.0))
68 int *pi = INTEGER(i), *pj = INTEGER(j);
69 R_xlen_t k, kend = XLENGTH(i);
71 for (k = 0; k < kend; ++k)
73 (ISNAN(px[k].i) || px[k].i != 0.0))
79 return DIAG(obj) ==
'N';
81 Rf_error(
"should never happen ...");