Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

ExternalFunctions

Guides

  • Astronomy
  • Chemistry
  • External Functions
  • Machine Learning
  • Mathematics
  • Text Processing

Symbols

  • AcentricFactor
  • BirchClusterPredict
  • Degrees
  • DiscreteCosineTransform
  • DiscreteSineTransform
  • FastFourierTransform
  • InverseDiscreteCosineTransform
  • InverseDiscreteSineTransform
  • InverseFastFourierTransform
  • KeplerLightCurves
  • KhatriRaoProduct
  • KroghInterpolation
  • LeeKeslerOmega
  • LoadExternalFunction
  • MatrixBandwidth
  • NewtonCotes
  • Radians
  • StielPolarFactor
  • TextWrap
  • UnicodeLookup
  • UnicodeName
ArnoudBuzing`ExternalFunctions`
KhatriRaoProduct
​
KhatriRaoProduct[a,b]
compute the Khatri-Rao product of
a
and
b
.
​
Details and Options

Examples  
(1)
Basic Examples  
(1)
Compute the Khatri-Rao product for two matrices:
In[1]:=
MatrixForm[a=RandomReal[1,{2,3}]]
Out[1]//MatrixForm=

0.894497
0.220412
0.0733662
0.2858
0.196973
0.939299

In[2]:=
MatrixForm[b=RandomReal[1,{5,3}]]
Out[2]//MatrixForm=
0.198798
0.135733
0.670401
0.112548
0.524752
0.911043
0.983508
0.262809
0.0820666
0.0170151
0.465072
0.617592
0.19448
0.230306
0.162462
In[3]:=
MatrixForm
KhatriRaoProduct
[a,b]
Out[3]//MatrixForm=
0.177824
0.0299171
0.0491848
0.100674
0.115662
0.0668398
0.879745
0.0579261
0.00602092
0.01522
0.102507
0.0453104
0.173961
0.0507622
0.0119192
0.0568163
0.0267357
0.629707
0.0321662
0.103362
0.855742
0.281086
0.0517662
0.0770851
0.00486293
0.0916067
0.580104
0.0555822
0.0453641
0.1526
SeeAlso
RelatedGuides
▪
External Functions
▪
Mathematics
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com