tensorA (version 0.36.1)

bind.tensor: 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

Details

This function works like a cbind or rbind function for tensors.

See Also

base{cbind}

Examples

Run this code
# NOT RUN {
  A <- to.tensor(1:6,c(a=2,b=3))
bind.tensor(A,"a",A)
bind.tensor(A,"b",A)
# }

Run the code above in your browser using DataCamp Workspace