File Exchange

image thumbnail

Khatri-Rao product

version 1.1.0.0 (1.48 KB) by Laurent S
An efficient implementation of the Khatri-Rao product.

6 Downloads

Updated 21 Oct 2010

View License

kr.m efficiently computes the Khatri-Rao product of two matrices, or a string of Khatri-Rao products of several matrices.

Cite As

Laurent S (2019). Khatri-Rao product (https://www.mathworks.com/matlabcentral/fileexchange/28872-khatri-rao-product), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (2)

Molly Mao

The function help states that the result is an I*J-by-K matrix. This is not always true. Example:

kr(zeros(10000,0),zeros(2,0))

ans =

Empty matrix: 2-by-0

Updates

1.1.0.0

Improved input handling.

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags