Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

khatri_rao

Khatri-Rao Product


Description

Returns the Khatri-Rao (column-wise Kronecker) product of two matrices. If the inputs are vectors then this is the same as the Kronecker product.

Usage

khatri_rao(x, y)

Arguments

x

first matrix

y

second matrix

Value

matrix that is the Khatri-Rao product

Note

The number of columns must match in the two inputs.

See Also

Examples

dim(khatri_rao(matrix(runif(12),ncol=4),matrix(runif(12),ncol=4)))

rTensor

Tools for Tensor Analysis and Decomposition

v1.4.8
GPL (>= 2)
Authors
James Li and Jacob Bien and Martin Wells
Initial release
2021-05-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.