ttm: Mode k product with matrix

View source: R/ttm.R

ttmR Documentation

Mode k product with matrix

Description

Performing k-mode matrix product of a tensor to a matrix

Usage

ttm(ten, A, k)

Arguments

ten

A multi-dimensional array with the k mode dimension aaa

A

A matrix with dimension bbb by aaa

k

An integer specifying the tensor mode to perform k-mode matrix product

Value

A multi-dimensional array with the k mode dimension bbb

Examples

ttm(array(1:24,c(3,4,2)), matrix(1:4,nrow =2), 3)


tensorFun documentation built on Nov. 1, 2022, 9:05 a.m.