bind.tensor {tensorA}R Documentation

A cbind/rbind for tensors

Description

Tensors can be put side by side in one dimension if they are of equal size in all other dimensions.

Usage

bind.tensor(A,dA=NULL,B,dB=dA)

Arguments

A the first tensor
dA the dimension of A to be used for binding the tensors
B the second tensor
dB the dimension of B to be used for binding the tensors

Value

a tensor with the tensors combined to one

Note

binding does not preserve the sequence of the entries.

Author(s)

K.Gerald van den Boogaart

See Also

base{cbind}

Examples

  A <- to.tensor(1:6,c(a=2,b=3))
bind.tensor(A,"a",A)
bind.tensor(A,"b",A)

[Package tensorA version 0.31 Index]