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

Function complex__Mod

inst/include/Rcpp/sugar/functions/complex.h:58–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56inline double complex__Re( Rcomplex x){ return x.r ; }
57inline double complex__Im( Rcomplex x){ return x.i ; }
58inline double complex__Mod( Rcomplex x){ return ::sqrt( x.i * x.i + x.r * x.r) ; }
59inline Rcomplex complex__Conj( Rcomplex x){
60 Rcomplex y ;
61 y.r = x.r;

Callers

nothing calls this directly

Calls 1

sqrtFunction · 0.50

Tested by

no test coverage detected