mult_3d: Multiply three matrices (or vectors) through a given core...

Description Usage Arguments Value Examples

View source: R/mult_3d.R

Description

The package 'rTensor' is required and the number of columns of x, y and z must match the dimensions of core.

Usage

1
mult_3d(core, x, y, z, names = T)

Arguments

core

array

x

matrix to multiply by the first mode of core

y

matrix to multiply by the second mode of core

z

matrix to multiply by the third mode of core

names

logical indicating whether to keep the dimension names

Value

Array with sizes given by the number of rows in x, y and z

Examples

1
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))

nathanlazar/BaTFLED3D documentation built on May 23, 2019, 12:19 p.m.