Skip to content
Back to formatted view

Raw Message

Message-ID: <22700.47987.866631.172728@max.eddelbuettel.com>
Date: 2017-02-21T22:13:07Z
From: Dirk Eddelbuettel
Subject: [Rcpp-devel] Using complex numbers and functions in Rcpp
In-Reply-To: <CANLFJPp8NoJ6X_sXaWQxqOtKeZCUqjbbzY3ffaZEEF96DLv=nw@mail.gmail.com>

On 22 February 2017 at 10:36, Baptiste Auguie wrote:
| I think you can/should use std::complex, see for example the types used in
| 
| https://github.com/baptiste/rcppfaddeeva/blob/master/src/callFaddeeva.cpp?
| 
| In general I prefer to work with RcppArmadillo for numerical (including
| complex) computations, its syntax closely follows R and Matlab. See for
| instance?
| 
| https://github.com/baptiste/cda/blob/master/src/cda.cpp
| https://github.com/baptiste/planar/blob/master/src/fresnel.cpp
| 
| for some examples.

Perfect. I was just about to recommend to Martin that he look closely at
your packages :)

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org