Support for C++ vector of arrays
# S3 method for arrayvec
print(x, ...)
# S3 method for arrayvec
dim(x)
# S3 method for arrayvec
as.matrix(x, ...)
# S3 method for arrayvec
as.data.frame(x, ...)
# S3 method for arrayvec
[(x, i, j, drop = TRUE)
# S3 method for arrayvec
[[(x, ...)
an arrayvec object
other parameters
row
column
drop singleton dimensions if true
print.arrayvec | the object invisibly |
dim.arrayvec | the rows and columns |
as.matrix.arrayvec | a matrix |
as.data.frame.arrayvec | a data frame |
`[.arrayvec` | a matrix or vector |
`[[.arrayvec` | a column vector |
Because kdtools
is implemented in C++, it operates natively
on a vector of arrays. An arrayvec
object is a wrapper around a
pointer to a vector of arrays. These functions provide some ability to
manipulate the data as if it were a matrix.