Learn R Programming

tensorr (version 0.1.1)

array_index: Array Index

Description

Convert a vector of linear indices to a a matrix of array indices. Each linear index will map to a column in the matrix.

Usage

array_index(x, dims)

Arguments

x

vector of linear indices

dims

dimensions