Typedef struct

Rcomplex is a C struct that represents a complex number, and hence contains two members:

  • r, the real part, a double number

  • i, the imaginary part, a double number

Declaration

typedef struct {
  double r;
  double i;
} Rcomplex;

In R_ext/Complex.h.