powered by
The package 'rTensor' is required and the number of columns of x, y and z must match the dimensions of core.
mult_3d(core, x, y, z, names = T)
array
matrix to multiply by the first mode of core
core
matrix to multiply by the second mode of core
matrix to multiply by the third mode of core
logical indicating whether to keep the dimension names
Array with sizes given by the number of rows in x, y and z
# NOT RUN { mult_3d(array(1:24, dim=c(2,3,4)), matrix(1:4,2,2), matrix(1:6,2,3), matrix(1:8,2,4)) # }
Run the code above in your browser using DataLab