You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For scalar types we can continue to simply copy numbers. However, for larger data we will want to have Nim wrapper types that allow access to the underlying data of the SEXP without copying.
A sketch:
typeNumericVector[T] =object
obj: SEXPproc`[]`[T](v: NumericVector[T], idx: int): T =result= v.obj.accessArray(idx) # where accessArray accesses the data using DATAPTR...
Need to learn what other types of interest we might want to wrap other than vectors.
The text was updated successfully, but these errors were encountered:
For scalar types we can continue to simply copy numbers. However, for larger data we will want to have Nim wrapper types that allow access to the underlying data of the
SEXP
without copying.A sketch:
Need to learn what other types of interest we might want to wrap other than vectors.
The text was updated successfully, but these errors were encountered: