We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6deebe commit c3501c1Copy full SHA for c3501c1
inst/include/cpp4r/complexes.hpp
@@ -196,10 +196,10 @@ class r_vector<r_complex>::proxy {
196
197
} // namespace writable
198
199
-// New complex_vector class for handling complex numbers in SEXP
200
-class complex_vector {
+// New complexes_vector class for handling complex numbers in SEXP
+class complexes_vector {
201
public:
202
- explicit complex_vector(SEXP x)
+ explicit complexes_vector(SEXP x)
203
: data_(reinterpret_cast<Rcomplex*>(DATAPTR(x))), size_(Rf_length(x)) {}
204
205
std::complex<double> operator[](R_xlen_t i) const { return {data_[i].r, data_[i].i}; }
0 commit comments