Skip to content

Commit c3501c1

Browse files
committed
consistent notation for complexes
1 parent b6deebe commit c3501c1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

inst/include/cpp4r/complexes.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ class r_vector<r_complex>::proxy {
196196

197197
} // namespace writable
198198

199-
// New complex_vector class for handling complex numbers in SEXP
200-
class complex_vector {
199+
// New complexes_vector class for handling complex numbers in SEXP
200+
class complexes_vector {
201201
public:
202-
explicit complex_vector(SEXP x)
202+
explicit complexes_vector(SEXP x)
203203
: data_(reinterpret_cast<Rcomplex*>(DATAPTR(x))), size_(Rf_length(x)) {}
204204

205205
std::complex<double> operator[](R_xlen_t i) const { return {data_[i].r, data_[i].i}; }

0 commit comments

Comments
 (0)