Convert a matrix to a vector of arrays
matrix_to_tuples(x)
tuples_to_matrix(x)
object to be converted
Most of the R functions exposed by kdtools
can operate
natively on a data.frame, matrix or an arrayvec
object.
An arrayvec
object is a pointer to a native C++ vector of arrays
and will be the fastest option. Only doubles are supported by arrayvec
.
Use this function to convert your data before processing for optimal speed.