TensProd: Compute tensor product over multiple dimensions using...

Description Usage Arguments Value Examples

View source: R/TensProd.R

Description

Compute tensor product over multiple dimensions using Khatri-Rao product

Usage

1

Arguments

L

List of length K, with matrix entries Lk: m_k X R;

range

Column indices over which to apply tensor product.Default is all columns (range = [1:R])

Value

Ans Array of size m_1 X m_2 ... X m_K, where the [i1,...iK]; entry is the sum of product Lk(i1,r)*...*LK(iK,r) over all r in range.

Examples

1
2
L <- list(matrix(rnorm(10*10),10,10),matrix(rnorm(10*10),10,10),matrix(rnorm(1000*10),1000,10))
TensProd(L)

SuperPCA documentation built on July 26, 2021, 5:06 p.m.

Related to TensProd in SuperPCA...