MCPcopy Create free account
hub / github.com/apache/arrow / complexs

Class complexs

r/src/arrow_cpp11.h:104–116  ·  view source on GitHub ↗

until cpp11 has a similar class

Source from the content-addressed store, hash-verified

102
103// until cpp11 has a similar class
104class complexs {
105 public:
106 using value_type = Rcomplex;
107
108 explicit complexs(SEXP x) : data_(x) {}
109
110 inline R_xlen_t size() const { return XLENGTH(data_); }
111
112 inline operator SEXP() const { return data_; }
113
114 private:
115 cpp11::sexp data_;
116};
117
118// functions that need to be called from an unwind_protect()
119namespace unsafe {

Callers 1

r___RBuffer__initializeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected