amprod: Array-matrix product

Description Usage Arguments Details Author(s) Examples

View source: R/tfunctions.r

Description

Multiply an array by a matrix along a given mode

Usage

1
amprod(A, M, k)

Arguments

A

a real valued array

M

a real matrix

k

an integer, a mode of A

Details

This function multiplies a matricized array by another matrix, and then reforms the result into a new array.

Author(s)

Peter Hoff

Examples

1
2
3
A<-rsan(c(5,4,3))
B<-rsan(c(2,5))
amprod(A,B,1)

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