tprod: Tucker product

Description Usage Arguments Details Author(s) Examples

View source: R/tfunctions.r

Description

Multiply an array by a list of matrices along each mode

Usage

1
tprod(A, B, modes = 1:length(B))

Arguments

A

a real valued array

B

a list of matrices, the second dimension of each matching the dimensions of A

modes

a vector giving which modes of A should be multiplied

Details

This function multiplies an array along each mode.

Author(s)

Peter Hoff

Examples

1
2
3
m<-c(6,5,4)
A<-rsan(c(6,5,4))
B<-list() ; for(k in 1:3) { B[[k]]<-rsan(c(3,dim(A)[[k]])) }

MikeKozelMSU/mcmcFunc documentation built on May 22, 2019, 5:31 p.m.