arrayvec: Support for C++ vector of arrays

Description Usage Arguments Details Value

Description

Support for C++ vector of arrays

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## S3 method for class 'arrayvec'
print(x, ...)

## S3 method for class 'arrayvec'
dim(x)

## S3 method for class 'arrayvec'
as.matrix(x, ...)

## S3 method for class 'arrayvec'
as.data.frame(x, ...)

## S3 method for class 'arrayvec'
x[i, j, drop = TRUE]

## S3 method for class 'arrayvec'
x[[...]]

Arguments

x

an arrayvec object

...

other parameters

i

row

j

column

drop

drop singleton dimensions if true

Details

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.

Value

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

kdtools documentation built on Oct. 8, 2021, 9:07 a.m.