Description Usage Arguments Details Value Author(s) Examples
A dimension of length 1 is added a given position to a tensor
1 | undrop.tensor(A,name,pos=1)
|
A |
the tensor |
name |
the name of the dimension to be added |
pos |
the position, where to insert the new dimension |
The function is a pure convenience function.
A tensor with one extra dimension of length 1 with name name
at
position pos
.
K. Gerald van den Boogaart
1 2 | A <- to.tensor(1:4,c(a=2,b=2))
undrop.tensor(A,"i")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.