Re: [R-pkg-devel] Complex Math Functions in C

2021-02-27 Thread Oliver Madsen
Complex arithmetic seems to be part of "src/main/complex.c" (all of main is not exposed to developers). Rcpp does have quite a bit (if not all?) of the complex math implemented already though, so if you are not set on using C, you could instead work with ComplexVectors in Rcpp (see the online docu

[R-pkg-devel] Complex Math Functions in C

2021-02-26 Thread Andrew Simmons
Hello, I've been trying to translate some of my slow R code into C code, and I need the complex math functions to be able to do this. I assumed I could access them with #include but it seems as though that file only contains the definition of structure Rcomplex. Any help accessing these functi