Matrix r5059
Loading...
Searching...
No Matches
M5.h File Reference
#include <R_ext/Error.h>

Go to the source code of this file.

Macros

#define nTYPE   int
 
#define lTYPE   int
 
#define iTYPE   int
 
#define dTYPE   double
 
#define zTYPE   Rcomplex
 
#define nTYPESXP   LGLSXP
 
#define lTYPESXP   LGLSXP
 
#define iTYPESXP   INTSXP
 
#define dTYPESXP   REALSXP
 
#define zTYPESXP   CPLXSXP
 
#define nPTR   LOGICAL
 
#define lPTR   LOGICAL
 
#define iPTR   INTEGER
 
#define dPTR   REAL
 
#define zPTR   COMPLEX
 
#define nZERO   0
 
#define lZERO   0
 
#define iZERO   0
 
#define dZERO   0.0
 
#define zZERO   Matrix_zzero
 
#define nUNIT   1
 
#define lUNIT   1
 
#define iUNIT   1
 
#define dUNIT   1.0
 
#define zUNIT   Matrix_zunit
 
#define nNA   1
 
#define lNA   NA_LOGICAL
 
#define iNA   NA_INTEGER
 
#define dNA   NA_REAL
 
#define zNA   Matrix_zna
 
#define nNAME(s)
 
#define lNAME(s)
 
#define iNAME(s)
 
#define dNAME(s)
 
#define zNAME(s)
 
#define nIF_NPATTERN(...)
 
#define lIF_NPATTERN(...)
 
#define iIF_NPATTERN(...)
 
#define dIF_NPATTERN(...)
 
#define zIF_NPATTERN(...)
 
#define nIFELSE_NPATTERN(x, y)
 
#define lIFELSE_NPATTERN(x, y)
 
#define iIFELSE_NPATTERN(x, y)
 
#define dIFELSE_NPATTERN(x, y)
 
#define zIFELSE_NPATTERN(x, y)
 
#define nNOT_ZERO(x)
 
#define lNOT_ZERO(x)
 
#define iNOT_ZERO(x)
 
#define dNOT_ZERO(x)
 
#define zNOT_ZERO(x)
 
#define nNOT_ZERO_REAL(x)
 
#define lNOT_ZERO_REAL(x)
 
#define iNOT_ZERO_REAL(x)
 
#define dNOT_ZERO_REAL(x)
 
#define zNOT_ZERO_REAL(x)
 
#define nNOT_ZERO_IMAG(x)
 
#define lNOT_ZERO_IMAG(x)
 
#define iNOT_ZERO_IMAG(x)
 
#define dNOT_ZERO_IMAG(x)
 
#define zNOT_ZERO_IMAG(x)
 
#define nNOT_ZERO_TOL(x, tol)
 
#define lNOT_ZERO_TOL(x, tol)
 
#define iNOT_ZERO_TOL(x, tol)
 
#define dNOT_ZERO_TOL(x, tol)
 
#define zNOT_ZERO_TOL(x, tol)
 
#define nNOT_UNIT(x)
 
#define lNOT_UNIT(x)
 
#define iNOT_UNIT(x)
 
#define dNOT_UNIT(x)
 
#define zNOT_UNIT(x)
 
#define nNOT_NA(x)
 
#define lNOT_NA(x)
 
#define iNOT_NA(x)
 
#define dNOT_NA(x)
 
#define zNOT_NA(x)
 
#define nNOT_IDEN(x, y)
 
#define lNOT_IDEN(x, y)
 
#define iNOT_IDEN(x, y)
 
#define dNOT_IDEN(x, y)
 
#define zNOT_IDEN(x, y)
 
#define nNOT_CONJ(x, y)
 
#define lNOT_CONJ(x, y)
 
#define iNOT_CONJ(x, y)
 
#define dNOT_CONJ(x, y)
 
#define zNOT_CONJ(x, y)
 
#define nSET_ZERO(x)
 
#define lSET_ZERO(x)
 
#define iSET_ZERO(x)
 
#define dSET_ZERO(x)
 
#define zSET_ZERO(x)
 
#define nSET_UNIT(x)
 
#define lSET_UNIT(x)
 
#define iSET_UNIT(x)
 
#define dSET_UNIT(x)
 
#define zSET_UNIT(x)
 
#define nSET_NA(x)
 
#define lSET_NA(x)
 
#define iSET_NA(x)
 
#define dSET_NA(x)
 
#define zSET_NA(x)
 
#define nSET_IDEN(x)
 
#define lSET_IDEN(x)
 
#define iSET_IDEN(x)
 
#define dSET_IDEN(x)
 
#define zSET_IDEN(x)
 
#define nSET_CONJ(x)
 
#define lSET_CONJ(x)
 
#define iSET_CONJ(x)
 
#define dSET_CONJ(x)
 
#define zSET_CONJ(x)
 
#define nSET_PROJ_REAL(x)
 
#define lSET_PROJ_REAL(x)
 
#define iSET_PROJ_REAL(x)
 
#define dSET_PROJ_REAL(x)
 
#define zSET_PROJ_REAL(x)
 
#define nSET_PROJ_IMAG(x)
 
#define lSET_PROJ_IMAG(x)
 
#define iSET_PROJ_IMAG(x)
 
#define dSET_PROJ_IMAG(x)
 
#define zSET_PROJ_IMAG(x)
 
#define nASSIGN_IDEN(x, y)
 
#define lASSIGN_IDEN(x, y)
 
#define iASSIGN_IDEN(x, y)
 
#define dASSIGN_IDEN(x, y)
 
#define zASSIGN_IDEN(x, y)
 
#define nASSIGN_CONJ(x, y)
 
#define lASSIGN_CONJ(x, y)
 
#define iASSIGN_CONJ(x, y)
 
#define dASSIGN_CONJ(x, y)
 
#define zASSIGN_CONJ(x, y)
 
#define nASSIGN_PROJ_REAL(x, y)
 
#define lASSIGN_PROJ_REAL(x, y)
 
#define iASSIGN_PROJ_REAL(x, y)
 
#define dASSIGN_PROJ_REAL(x, y)
 
#define zASSIGN_PROJ_REAL(x, y)
 
#define nASSIGN_PROJ_IMAG(x, y)
 
#define lASSIGN_PROJ_IMAG(x, y)
 
#define iASSIGN_PROJ_IMAG(x, y)
 
#define dASSIGN_PROJ_IMAG(x, y)
 
#define zASSIGN_PROJ_IMAG(x, y)
 
#define nINCREMENT_IDEN(x, y)
 
#define lINCREMENT_IDEN(x, y)
 
#define iINCREMENT_IDEN(x, y)
 
#define dINCREMENT_IDEN(x, y)
 
#define zINCREMENT_IDEN(x, y)
 
#define nINCREMENT_CONJ(x, y)
 
#define lINCREMENT_CONJ(x, y)
 
#define iINCREMENT_CONJ(x, y)
 
#define dINCREMENT_CONJ(x, y)
 
#define zINCREMENT_CONJ(x, y)
 
#define nDECREMENT_IDEN(x, y)
 
#define lDECREMENT_IDEN(x, y)
 
#define iDECREMENT_IDEN(x, y)
 
#define dDECREMENT_IDEN(x, y)
 
#define zDECREMENT_IDEN(x, y)
 
#define nDECREMENT_CONJ(x, y)
 
#define lDECREMENT_CONJ(x, y)
 
#define iDECREMENT_CONJ(x, y)
 
#define dDECREMENT_CONJ(x, y)
 
#define zDECREMENT_CONJ(x, y)
 
#define nMULTIPLY(x, a)
 
#define lMULTIPLY(x, a)
 
#define iMULTIPLY(x, a)
 
#define dMULTIPLY(x, a)
 
#define zMULTIPLY(x, a)
 
#define nDIVIDE(x, a)
 
#define lDIVIDE(x, a)
 
#define iDIVIDE(x, a)
 
#define dDIVIDE(x, a)
 
#define zDIVIDE(x, a)
 
#define SWITCH2(c, template)
 
#define SWITCH3(c, template)
 
#define SWITCH4(c, template)
 
#define SWITCH5(c, template)
 

Macro Definition Documentation

◆ dASSIGN_CONJ

#define dASSIGN_CONJ ( x,
y )
Value:
((x) = (y))

Definition at line 171 of file M5.h.

◆ dASSIGN_IDEN

#define dASSIGN_IDEN ( x,
y )
Value:
((x) = (y))

Definition at line 165 of file M5.h.

◆ dASSIGN_PROJ_IMAG

#define dASSIGN_PROJ_IMAG ( x,
y )
Value:
((x) = 0.0)

Definition at line 183 of file M5.h.

◆ dASSIGN_PROJ_REAL

#define dASSIGN_PROJ_REAL ( x,
y )
Value:
((x) = (y))

Definition at line 177 of file M5.h.

◆ dDECREMENT_CONJ

#define dDECREMENT_CONJ ( x,
y )
Value:
#define dDECREMENT_IDEN(x, y)
Definition M5.h:259

Definition at line 272 of file M5.h.

◆ dDECREMENT_IDEN

#define dDECREMENT_IDEN ( x,
y )
Value:
do { \
(x) -= (y); \
} while (0)

Definition at line 259 of file M5.h.

◆ dDIVIDE

#define dDIVIDE ( x,
a )
Value:
do { (x) /= a; } while (0)

Definition at line 286 of file M5.h.

◆ dIF_NPATTERN

#define dIF_NPATTERN ( ...)
Value:
__VA_ARGS__

Definition at line 51 of file M5.h.

◆ dIFELSE_NPATTERN

#define dIFELSE_NPATTERN ( x,
y )
Value:
x

Definition at line 57 of file M5.h.

◆ dINCREMENT_CONJ

#define dINCREMENT_CONJ ( x,
y )
Value:
#define dINCREMENT_IDEN(x, y)
Definition M5.h:216

Definition at line 229 of file M5.h.

◆ dINCREMENT_IDEN

#define dINCREMENT_IDEN ( x,
y )
Value:
do { \
(x) += (y); \
} while (0)

Definition at line 216 of file M5.h.

◆ dMULTIPLY

#define dMULTIPLY ( x,
a )
Value:
do { (x) *= a; } while (0)

Definition at line 278 of file M5.h.

◆ dNA

#define dNA   NA_REAL

Definition at line 39 of file M5.h.

◆ dNAME

#define dNAME ( s)
Value:
d ## s

Definition at line 45 of file M5.h.

◆ dNOT_CONJ

#define dNOT_CONJ ( x,
y )
Value:
((ISNAN(x)) ? !ISNAN(y) : ISNAN(y) || x != y)

Definition at line 114 of file M5.h.

◆ dNOT_IDEN

#define dNOT_IDEN ( x,
y )
Value:
((ISNAN(x)) ? !ISNAN(y) : ISNAN(y) || (x) != (y))

Definition at line 102 of file M5.h.

◆ dNOT_NA

#define dNOT_NA ( x)
Value:
(!ISNAN(x))

Definition at line 93 of file M5.h.

◆ dNOT_UNIT

#define dNOT_UNIT ( x)
Value:
((x) != 1.0)

Definition at line 87 of file M5.h.

◆ dNOT_ZERO

#define dNOT_ZERO ( x)
Value:
((x) != 0.0)

Definition at line 63 of file M5.h.

◆ dNOT_ZERO_IMAG

#define dNOT_ZERO_IMAG ( x)
Value:
(0)

Definition at line 75 of file M5.h.

◆ dNOT_ZERO_REAL

#define dNOT_ZERO_REAL ( x)
Value:
((x) != 0.0)

Definition at line 69 of file M5.h.

◆ dNOT_ZERO_TOL

#define dNOT_ZERO_TOL ( x,
tol )
Value:
(ISNAN(x) || fabs(x) > tol)

Definition at line 81 of file M5.h.

◆ dPTR

#define dPTR   REAL

Definition at line 21 of file M5.h.

◆ dSET_CONJ

#define dSET_CONJ ( x)

Definition at line 147 of file M5.h.

◆ dSET_IDEN

#define dSET_IDEN ( x)

Definition at line 141 of file M5.h.

◆ dSET_NA

#define dSET_NA ( x)
Value:
((x) = NA_REAL)

Definition at line 135 of file M5.h.

◆ dSET_PROJ_IMAG

#define dSET_PROJ_IMAG ( x)
Value:
((x) = 0.0)

Definition at line 159 of file M5.h.

◆ dSET_PROJ_REAL

#define dSET_PROJ_REAL ( x)

Definition at line 153 of file M5.h.

◆ dSET_UNIT

#define dSET_UNIT ( x)
Value:
((x) = 1.0)

Definition at line 129 of file M5.h.

◆ dSET_ZERO

#define dSET_ZERO ( x)
Value:
((x) = 0.0)

Definition at line 123 of file M5.h.

◆ dTYPE

#define dTYPE   double

Definition at line 9 of file M5.h.

◆ dTYPESXP

#define dTYPESXP   REALSXP

Definition at line 15 of file M5.h.

◆ dUNIT

#define dUNIT   1.0

Definition at line 33 of file M5.h.

◆ dZERO

#define dZERO   0.0

Definition at line 27 of file M5.h.

◆ iASSIGN_CONJ

#define iASSIGN_CONJ ( x,
y )
Value:
((x) = (y))

Definition at line 170 of file M5.h.

◆ iASSIGN_IDEN

#define iASSIGN_IDEN ( x,
y )
Value:
((x) = (y))

Definition at line 164 of file M5.h.

◆ iASSIGN_PROJ_IMAG

#define iASSIGN_PROJ_IMAG ( x,
y )
Value:
((x) = 0)

Definition at line 182 of file M5.h.

◆ iASSIGN_PROJ_REAL

#define iASSIGN_PROJ_REAL ( x,
y )
Value:
((x) = (y))

Definition at line 176 of file M5.h.

◆ iDECREMENT_CONJ

#define iDECREMENT_CONJ ( x,
y )
Value:
#define iDECREMENT_IDEN(x, y)
Definition M5.h:242

Definition at line 271 of file M5.h.

◆ iDECREMENT_IDEN

#define iDECREMENT_IDEN ( x,
y )
Value:
do { \
if ((x) != NA_INTEGER) { \
if ((y) == NA_INTEGER) \
(x) = NA_INTEGER; \
else if ((y) != 0) { \
if (((y) < 0) \
? ((x) > INT_MAX + (y)) \
: ((x) <= INT_MIN + (y))) { \
Rf_warning(_("NAs produced by integer overflow")); \
(x) = NA_INTEGER; \
} \
else \
(x) -= (y); \
} \
} \
} while (0)
#define _(String)
Definition Mdefines.h:66

Definition at line 242 of file M5.h.

◆ iDIVIDE

#define iDIVIDE ( x,
a )
Value:
/* ditto */

Definition at line 285 of file M5.h.

◆ iIF_NPATTERN

#define iIF_NPATTERN ( ...)
Value:
__VA_ARGS__

Definition at line 50 of file M5.h.

◆ iIFELSE_NPATTERN

#define iIFELSE_NPATTERN ( x,
y )
Value:
x

Definition at line 56 of file M5.h.

◆ iINCREMENT_CONJ

#define iINCREMENT_CONJ ( x,
y )
Value:
#define iINCREMENT_IDEN(x, y)
Definition M5.h:199

Definition at line 228 of file M5.h.

◆ iINCREMENT_IDEN

#define iINCREMENT_IDEN ( x,
y )
Value:
do { \
if ((x) != NA_INTEGER) { \
if ((y) == NA_INTEGER) \
(x) = NA_INTEGER; \
else if ((y) != 0) { \
if (((y) > 0) \
? ((x) > INT_MAX - (y)) \
: ((x) <= INT_MIN - (y))) { \
Rf_warning(_("NAs produced by integer overflow")); \
(x) = NA_INTEGER; \
} \
else \
(x) += (y); \
} \
} \
} while (0)

Definition at line 199 of file M5.h.

◆ iMULTIPLY

#define iMULTIPLY ( x,
a )
Value:
/* ditto */

Definition at line 277 of file M5.h.

◆ iNA

#define iNA   NA_INTEGER

Definition at line 38 of file M5.h.

◆ iNAME

#define iNAME ( s)
Value:
i ## s

Definition at line 44 of file M5.h.

◆ iNOT_CONJ

#define iNOT_CONJ ( x,
y )
Value:
(x != y)

Definition at line 112 of file M5.h.

◆ iNOT_IDEN

#define iNOT_IDEN ( x,
y )
Value:
((x) != (y))

Definition at line 100 of file M5.h.

◆ iNOT_NA

#define iNOT_NA ( x)
Value:
((x) != NA_INTEGER)

Definition at line 92 of file M5.h.

◆ iNOT_UNIT

#define iNOT_UNIT ( x)
Value:
((x) != 1)

Definition at line 86 of file M5.h.

◆ iNOT_ZERO

#define iNOT_ZERO ( x)
Value:
((x) != 0)

Definition at line 62 of file M5.h.

◆ iNOT_ZERO_IMAG

#define iNOT_ZERO_IMAG ( x)
Value:
(0)

Definition at line 74 of file M5.h.

◆ iNOT_ZERO_REAL

#define iNOT_ZERO_REAL ( x)
Value:
((x) != 0)

Definition at line 68 of file M5.h.

◆ iNOT_ZERO_TOL

#define iNOT_ZERO_TOL ( x,
tol )
Value:
((x) != 0)

Definition at line 80 of file M5.h.

◆ iPTR

#define iPTR   INTEGER

Definition at line 20 of file M5.h.

◆ iSET_CONJ

#define iSET_CONJ ( x)

Definition at line 146 of file M5.h.

◆ iSET_IDEN

#define iSET_IDEN ( x)

Definition at line 140 of file M5.h.

◆ iSET_NA

#define iSET_NA ( x)
Value:
((x) = NA_INTEGER)

Definition at line 134 of file M5.h.

◆ iSET_PROJ_IMAG

#define iSET_PROJ_IMAG ( x)
Value:
((x) = 0)

Definition at line 158 of file M5.h.

◆ iSET_PROJ_REAL

#define iSET_PROJ_REAL ( x)

Definition at line 152 of file M5.h.

◆ iSET_UNIT

#define iSET_UNIT ( x)
Value:
((x) = 1)

Definition at line 128 of file M5.h.

◆ iSET_ZERO

#define iSET_ZERO ( x)
Value:
((x) = 0)

Definition at line 122 of file M5.h.

◆ iTYPE

#define iTYPE   int

Definition at line 8 of file M5.h.

◆ iTYPESXP

#define iTYPESXP   INTSXP

Definition at line 14 of file M5.h.

◆ iUNIT

#define iUNIT   1

Definition at line 32 of file M5.h.

◆ iZERO

#define iZERO   0

Definition at line 26 of file M5.h.

◆ lASSIGN_CONJ

#define lASSIGN_CONJ ( x,
y )
Value:
((x) = (y))

Definition at line 169 of file M5.h.

◆ lASSIGN_IDEN

#define lASSIGN_IDEN ( x,
y )
Value:
((x) = (y))

Definition at line 163 of file M5.h.

◆ lASSIGN_PROJ_IMAG

#define lASSIGN_PROJ_IMAG ( x,
y )
Value:
((x) = 0)

Definition at line 181 of file M5.h.

◆ lASSIGN_PROJ_REAL

#define lASSIGN_PROJ_REAL ( x,
y )
Value:
((x) = (y))

Definition at line 175 of file M5.h.

◆ lDECREMENT_CONJ

#define lDECREMENT_CONJ ( x,
y )
Value:
#define lDECREMENT_IDEN(x, y)
Definition M5.h:233

Definition at line 270 of file M5.h.

◆ lDECREMENT_IDEN

#define lDECREMENT_IDEN ( x,
y )
Value:
do { \
if ((y) == NA_LOGICAL) { \
if ((x) == 0) \
(x) = NA_LOGICAL; \
} \
else if ((y) == 0) \
(x) = 1; \
} while (0)

Definition at line 233 of file M5.h.

◆ lDIVIDE

#define lDIVIDE ( x,
a )
Value:
/* ditto */

Definition at line 284 of file M5.h.

◆ lIF_NPATTERN

#define lIF_NPATTERN ( ...)
Value:
__VA_ARGS__

Definition at line 49 of file M5.h.

◆ lIFELSE_NPATTERN

#define lIFELSE_NPATTERN ( x,
y )
Value:
x

Definition at line 55 of file M5.h.

◆ lINCREMENT_CONJ

#define lINCREMENT_CONJ ( x,
y )
Value:
#define lINCREMENT_IDEN(x, y)
Definition M5.h:190

Definition at line 227 of file M5.h.

◆ lINCREMENT_IDEN

#define lINCREMENT_IDEN ( x,
y )
Value:
do { \
if ((y) == NA_LOGICAL) { \
if ((x) == 0) \
(x) = NA_LOGICAL; \
} \
else if ((y) != 0) \
(x) = 1; \
} while (0)

Definition at line 190 of file M5.h.

◆ lMULTIPLY

#define lMULTIPLY ( x,
a )
Value:
/* ditto */

Definition at line 276 of file M5.h.

◆ lNA

#define lNA   NA_LOGICAL

Definition at line 37 of file M5.h.

◆ lNAME

#define lNAME ( s)
Value:
i ## s

Definition at line 43 of file M5.h.

◆ lNOT_CONJ

#define lNOT_CONJ ( x,
y )
Value:
(x != y)

Definition at line 110 of file M5.h.

◆ lNOT_IDEN

#define lNOT_IDEN ( x,
y )
Value:
((x) != (y))

Definition at line 98 of file M5.h.

◆ lNOT_NA

#define lNOT_NA ( x)
Value:
((x) != NA_LOGICAL)

Definition at line 91 of file M5.h.

◆ lNOT_UNIT

#define lNOT_UNIT ( x)
Value:
((x) == 0 || (x) == NA_LOGICAL)

Definition at line 85 of file M5.h.

◆ lNOT_ZERO

#define lNOT_ZERO ( x)
Value:
((x) != 0)

Definition at line 61 of file M5.h.

◆ lNOT_ZERO_IMAG

#define lNOT_ZERO_IMAG ( x)
Value:
(0)

Definition at line 73 of file M5.h.

◆ lNOT_ZERO_REAL

#define lNOT_ZERO_REAL ( x)
Value:
((x) != 0)

Definition at line 67 of file M5.h.

◆ lNOT_ZERO_TOL

#define lNOT_ZERO_TOL ( x,
tol )
Value:
((x) != 0)

Definition at line 79 of file M5.h.

◆ lPTR

#define lPTR   LOGICAL

Definition at line 19 of file M5.h.

◆ lSET_CONJ

#define lSET_CONJ ( x)

Definition at line 145 of file M5.h.

◆ lSET_IDEN

#define lSET_IDEN ( x)

Definition at line 139 of file M5.h.

◆ lSET_NA

#define lSET_NA ( x)
Value:
((x) = NA_LOGICAL)

Definition at line 133 of file M5.h.

◆ lSET_PROJ_IMAG

#define lSET_PROJ_IMAG ( x)
Value:
((x) = 0)

Definition at line 157 of file M5.h.

◆ lSET_PROJ_REAL

#define lSET_PROJ_REAL ( x)

Definition at line 151 of file M5.h.

◆ lSET_UNIT

#define lSET_UNIT ( x)
Value:
((x) = 1)

Definition at line 127 of file M5.h.

◆ lSET_ZERO

#define lSET_ZERO ( x)
Value:
((x) = 0)

Definition at line 121 of file M5.h.

◆ lTYPE

#define lTYPE   int

Definition at line 7 of file M5.h.

◆ lTYPESXP

#define lTYPESXP   LGLSXP

Definition at line 13 of file M5.h.

◆ lUNIT

#define lUNIT   1

Definition at line 31 of file M5.h.

◆ lZERO

#define lZERO   0

Definition at line 25 of file M5.h.

◆ nASSIGN_CONJ

#define nASSIGN_CONJ ( x,
y )
Value:
((x) = (y))

Definition at line 168 of file M5.h.

◆ nASSIGN_IDEN

#define nASSIGN_IDEN ( x,
y )
Value:
((x) = (y))

Definition at line 162 of file M5.h.

◆ nASSIGN_PROJ_IMAG

#define nASSIGN_PROJ_IMAG ( x,
y )
Value:
((x) = 0)

Definition at line 180 of file M5.h.

◆ nASSIGN_PROJ_REAL

#define nASSIGN_PROJ_REAL ( x,
y )
Value:
((x) = (y))

Definition at line 174 of file M5.h.

◆ nDECREMENT_CONJ

#define nDECREMENT_CONJ ( x,
y )
Value:
#define nDECREMENT_IDEN(x, y)
Definition M5.h:232

Definition at line 269 of file M5.h.

◆ nDECREMENT_IDEN

#define nDECREMENT_IDEN ( x,
y )

Definition at line 232 of file M5.h.

◆ nDIVIDE

#define nDIVIDE ( x,
a )
Value:
/* unused hence no-op for now */

Definition at line 283 of file M5.h.

◆ nIF_NPATTERN

#define nIF_NPATTERN ( ...)

Definition at line 48 of file M5.h.

◆ nIFELSE_NPATTERN

#define nIFELSE_NPATTERN ( x,
y )
Value:
y

Definition at line 54 of file M5.h.

◆ nINCREMENT_CONJ

#define nINCREMENT_CONJ ( x,
y )
Value:
#define nINCREMENT_IDEN(x, y)
Definition M5.h:186

Definition at line 226 of file M5.h.

◆ nINCREMENT_IDEN

#define nINCREMENT_IDEN ( x,
y )
Value:
do { \
(x) = 1; \
} while (0)

Definition at line 186 of file M5.h.

◆ nMULTIPLY

#define nMULTIPLY ( x,
a )
Value:
/* unused hence no-op for now */

Definition at line 275 of file M5.h.

◆ nNA

#define nNA   1

Definition at line 36 of file M5.h.

◆ nNAME

#define nNAME ( s)
Value:
i ## s

Definition at line 42 of file M5.h.

◆ nNOT_CONJ

#define nNOT_CONJ ( x,
y )
Value:
((x != 0) != (y != 0))

Definition at line 108 of file M5.h.

◆ nNOT_IDEN

#define nNOT_IDEN ( x,
y )
Value:
(((x) != 0) != ((y) != 0))

Definition at line 96 of file M5.h.

◆ nNOT_NA

#define nNOT_NA ( x)
Value:
(1)

Definition at line 90 of file M5.h.

◆ nNOT_UNIT

#define nNOT_UNIT ( x)
Value:
((x) == 0)

Definition at line 84 of file M5.h.

◆ nNOT_ZERO

#define nNOT_ZERO ( x)
Value:
((x) != 0)

Definition at line 60 of file M5.h.

◆ nNOT_ZERO_IMAG

#define nNOT_ZERO_IMAG ( x)
Value:
(0)

Definition at line 72 of file M5.h.

◆ nNOT_ZERO_REAL

#define nNOT_ZERO_REAL ( x)
Value:
((x) != 0)

Definition at line 66 of file M5.h.

◆ nNOT_ZERO_TOL

#define nNOT_ZERO_TOL ( x,
tol )
Value:
((x) != 0)

Definition at line 78 of file M5.h.

◆ nPTR

#define nPTR   LOGICAL

Definition at line 18 of file M5.h.

◆ nSET_CONJ

#define nSET_CONJ ( x)

Definition at line 144 of file M5.h.

◆ nSET_IDEN

#define nSET_IDEN ( x)

Definition at line 138 of file M5.h.

◆ nSET_NA

#define nSET_NA ( x)
Value:
((x) = 1)

Definition at line 132 of file M5.h.

◆ nSET_PROJ_IMAG

#define nSET_PROJ_IMAG ( x)
Value:
((x) = 0)

Definition at line 156 of file M5.h.

◆ nSET_PROJ_REAL

#define nSET_PROJ_REAL ( x)

Definition at line 150 of file M5.h.

◆ nSET_UNIT

#define nSET_UNIT ( x)
Value:
((x) = 1)

Definition at line 126 of file M5.h.

◆ nSET_ZERO

#define nSET_ZERO ( x)
Value:
((x) = 0)

Definition at line 120 of file M5.h.

◆ nTYPE

#define nTYPE   int

Definition at line 6 of file M5.h.

◆ nTYPESXP

#define nTYPESXP   LGLSXP

Definition at line 12 of file M5.h.

◆ nUNIT

#define nUNIT   1

Definition at line 30 of file M5.h.

◆ nZERO

#define nZERO   0

Definition at line 24 of file M5.h.

◆ SWITCH2

#define SWITCH2 ( c,
template )
Value:
do { \
switch ((c)) { \
case 'n': \
case 'l': \
case 'i': \
case 'd': template(d); break; \
case 'z': template(z); break; \
default: break; \
} \
} while (0)
cholmod_common c
Definition cholmod-etc.c:5

Definition at line 291 of file M5.h.

Referenced by dense_skewpart(), dense_symmpart(), sparse_skewpart(), and sparse_symmpart().

◆ SWITCH3

#define SWITCH3 ( c,
template )
Value:
do { \
switch ((c)) { \
case 'n': \
case 'l': \
case 'i': template(i); break; \
case 'd': template(d); break; \
case 'z': template(z); break; \
default: break; \
} \
} while (0)

Definition at line 303 of file M5.h.

◆ SWITCH4

#define SWITCH4 ( c,
template )

◆ SWITCH5

◆ zASSIGN_CONJ

#define zASSIGN_CONJ ( x,
y )
Value:
((x).r = (y).r, (x).i = -(y).i)

Definition at line 172 of file M5.h.

Referenced by sparse_force_symmetric().

◆ zASSIGN_IDEN

#define zASSIGN_IDEN ( x,
y )
Value:
((x) = (y))

Definition at line 166 of file M5.h.

Referenced by sparse_force_symmetric().

◆ zASSIGN_PROJ_IMAG

#define zASSIGN_PROJ_IMAG ( x,
y )
Value:
((x).r = 0.0, (x).i = (y).i)

Definition at line 184 of file M5.h.

◆ zASSIGN_PROJ_REAL

#define zASSIGN_PROJ_REAL ( x,
y )
Value:
((x).r = (y).r, (x).i = 0.0)

Definition at line 178 of file M5.h.

Referenced by sparse_force_symmetric().

◆ zDECREMENT_CONJ

#define zDECREMENT_CONJ ( x,
y )
Value:
do { (x).r -= (y).r; (x).i += (y).i; } while (0)

Definition at line 273 of file M5.h.

◆ zDECREMENT_IDEN

#define zDECREMENT_IDEN ( x,
y )
Value:
do { \
(x).r -= (y).r; \
(x).i -= (y).i; \
} while (0)

Definition at line 263 of file M5.h.

◆ zDIVIDE

#define zDIVIDE ( x,
a )
Value:
do { (x).r /= a; (x).i /= a; } while (0)

Definition at line 288 of file M5.h.

◆ zIF_NPATTERN

#define zIF_NPATTERN ( ...)
Value:
__VA_ARGS__

Definition at line 52 of file M5.h.

◆ zIFELSE_NPATTERN

#define zIFELSE_NPATTERN ( x,
y )
Value:
x

Definition at line 58 of file M5.h.

◆ zINCREMENT_CONJ

#define zINCREMENT_CONJ ( x,
y )
Value:
do { (x).r += (y).r; (x).i -= (y).i; } while (0)

Definition at line 230 of file M5.h.

◆ zINCREMENT_IDEN

#define zINCREMENT_IDEN ( x,
y )
Value:
do { \
(x).r += (y).r; \
(x).i += (y).i; \
} while (0)

Definition at line 220 of file M5.h.

◆ zMULTIPLY

#define zMULTIPLY ( x,
a )
Value:
do { (x).r *= a; (x).i *= a; } while (0)

Definition at line 280 of file M5.h.

◆ zNA

#define zNA   Matrix_zna

Definition at line 40 of file M5.h.

◆ zNAME

#define zNAME ( s)
Value:
z ## s

Definition at line 46 of file M5.h.

◆ zNOT_CONJ

#define zNOT_CONJ ( x,
y )
Value:
(((ISNAN((x).r)) ? !ISNAN((y).r) : ISNAN((y).r) || (x).r != (y).r) || \
((ISNAN((x).i)) ? !ISNAN((y).i) : ISNAN((y).i) || (x).i != -(y).i))

Definition at line 116 of file M5.h.

Referenced by sparse_is_symmetric().

◆ zNOT_IDEN

#define zNOT_IDEN ( x,
y )
Value:
(((ISNAN((x).r)) ? !ISNAN((y).r) : ISNAN((y).r) || (x).r != (y).r) || \
((ISNAN((x).i)) ? !ISNAN((y).i) : ISNAN((y).i) || (x).i != (y).i))

Definition at line 104 of file M5.h.

◆ zNOT_NA

#define zNOT_NA ( x)
Value:
(!ISNAN((x).r) && !ISNAN((x).i))

Definition at line 94 of file M5.h.

◆ zNOT_UNIT

#define zNOT_UNIT ( x)
Value:
((x).r != 1.0 || (x).i != 0.0)

Definition at line 88 of file M5.h.

◆ zNOT_ZERO

#define zNOT_ZERO ( x)
Value:
((x).r != 0.0 || (x).i != 0.0)

Definition at line 64 of file M5.h.

Referenced by dense_is_symmetric().

◆ zNOT_ZERO_IMAG

#define zNOT_ZERO_IMAG ( x)
Value:
((x).i != 0.0)

Definition at line 76 of file M5.h.

Referenced by dense_is_symmetric(), and sparse_is_symmetric().

◆ zNOT_ZERO_REAL

#define zNOT_ZERO_REAL ( x)
Value:
((x).r != 0.0)

Definition at line 70 of file M5.h.

◆ zNOT_ZERO_TOL

#define zNOT_ZERO_TOL ( x,
tol )
Value:
(ISNAN((x).r) || ISNAN((x).i) || hypot((x).r, (x).i) > tol)

Definition at line 82 of file M5.h.

◆ zPTR

#define zPTR   COMPLEX

Definition at line 22 of file M5.h.

◆ zSET_CONJ

#define zSET_CONJ ( x)
Value:
((x).i = -(x).i)

Definition at line 148 of file M5.h.

◆ zSET_IDEN

#define zSET_IDEN ( x)

Definition at line 142 of file M5.h.

◆ zSET_NA

#define zSET_NA ( x)
Value:
((x) = Matrix_zna)
Rcomplex Matrix_zna
Definition init.c:643

Definition at line 136 of file M5.h.

◆ zSET_PROJ_IMAG

#define zSET_PROJ_IMAG ( x)
Value:
((x).r = 0.0)

Definition at line 160 of file M5.h.

◆ zSET_PROJ_REAL

#define zSET_PROJ_REAL ( x)
Value:
((x).i = 0.0)

Definition at line 154 of file M5.h.

◆ zSET_UNIT

#define zSET_UNIT ( x)
Value:
((x) = Matrix_zunit)
Rcomplex Matrix_zunit
Definition init.c:642

Definition at line 130 of file M5.h.

◆ zSET_ZERO

#define zSET_ZERO ( x)
Value:
((x) = Matrix_zzero)
Rcomplex Matrix_zzero
Definition init.c:641

Definition at line 124 of file M5.h.

◆ zTYPE

#define zTYPE   Rcomplex

Definition at line 10 of file M5.h.

◆ zTYPESXP

#define zTYPESXP   CPLXSXP

Definition at line 16 of file M5.h.

◆ zUNIT

#define zUNIT   Matrix_zunit

Definition at line 34 of file M5.h.

◆ zZERO

#define zZERO   Matrix_zzero

Definition at line 28 of file M5.h.