bindtensor.RdTensors can be put side by side in one dimension if they are of equal size in all other dimensions.
bind.tensor(A,dA=NULL,B,dB=dA)a tensor with the tensors combined to one
This function works like a cbind or rbind function for tensors.
binding does not preserve the sequence of the dimensions.
base{cbind}
A <- to.tensor(1:6,c(a=2,b=3))
bind.tensor(A,"a",A)
#> a
#> b [,1] [,2] [,3] [,4]
#> [1,] 1 2 1 2
#> [2,] 3 4 3 4
#> [3,] 5 6 5 6
#> attr(,"class")
#> [1] "tensor" "matrix"
bind.tensor(A,"b",A)
#> b
#> a [,1] [,2] [,3] [,4] [,5] [,6]
#> [1,] 1 3 5 1 3 5
#> [2,] 2 4 6 2 4 6
#> attr(,"class")
#> [1] "tensor" "matrix"