MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / Rcomplex_caster

Function Rcomplex_caster

inst/include/Rcpp/internal/caster.h:32–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30
31template <typename T>
32inline Rcomplex Rcomplex_caster( std::complex<T> from ){
33 Rcomplex cx ;
34 cx.r = (double)from.real() ;
35 cx.i = (double)from.imag() ;
36 return cx ;
37}
38
39template <>
40inline Rcomplex caster<std::complex<double>, Rcomplex>( std::complex<double> from){

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected