42 #ifndef COMPLEXVECTOR_H
43 #define COMPLEXVECTOR_H
46 #include "R_ext/Complex.h"
50 #include "R_ext/Arith.h"
96 template <
class Archive>
97 void serialize(Archive& ar,
const unsigned int version)
99 ar & BOOST_SERIALIZATION_NVP(r);
100 ar & BOOST_SERIALIZATION_NVP(i);
105 namespace ElementTraits {
110 static Complex na(NA_REAL, NA_REAL);
157 using namespace CXXR;
158 return &(*SEXP_downcast<ComplexVector*>(x,
false))[0];