All functions

DIM() DROP()

Helpers for working with 1-d arrays

array2() matrix2() `dim2<-`() set_dim2()

Make or reshape an array with C-style (row-major) semantics

bind_as_dim() bind_as_rows() bind_as_cols() bind_on_dim() bind_on_rows() bind_on_cols()

Bind arrays along a specified dimension

drop_dimnames() drop_dim() drop_dim2()

Drop dimnames

expand_dims()

Expand the shape of an array

extract_dim() extract_rows() extract_cols()

Extract with [ on a specified dimension

map_along_dim() map_along_rows() map_along_cols()

Apply a function across subsets along an array dimension

modify_along_dim() modify_along_rows() modify_along_cols()

Modify an array by mapping over 1 or more dimensions

ndim()

Length of DIM()

onehot_with_decoder() onehot() decode_onehot() onehot_decoder()

Convert vector to a onehot representation (binary class matrix)

seq_along_dim() seq_along_rows() seq_along_cols()

Sequence along a dimension

set_as_rows() set_as_cols()

Reshape an array to send a dimension forward or back

set_dim()

Reshape an array

set_dimnames()

Set dimnames

shuffle_rows()

Shuffle along the first dimension multiple arrays in sync

split_on_dim() split_on_rows() split_on_cols() split_along_dim() split_along_rows() split_along_cols()

Split an array along a dimension

t(<array>)

transpose an array