pos.tensor | R Documentation |
This gives all combinations of indices of a tensor with dimension d in the order of the numbers in the memory.
pos.tensor(d)
d |
a dim attribute of a tensor |
tensors are stored according to the R-convention that the leftmost index varies fastest.
a matrix with the same number of rows as the tensor has entries an the same number of columns as the tensor has dimensions. Each row represents the index combination of a the corresponding element.
K.Gerald van den Boogaart
reorder.tensor
(A <- to.tensor(1:20,dim=c(A=2,B=2,C=5)))
pos.tensor(dim(A))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.