direct.prod {matrixcalc} | R Documentation |
Direct prod of two arrays
Description
This function computes the direct product of two arrays. The arrays can be numerical vectors or matrices. The result is a matrix.
Usage
direct.prod( x, y )
Arguments
x |
a numeric matrix or vector |
y |
a numeric matrix or vector |
Details
If either or
is a vector, it is converted to a matrix.
Suppose that
is an
matrix and
is an
matrix. Then, the function returns the matrix
.
Value
A numeric matrix.
Author(s)
Frederick Novomestky fnovomes@poly.edu, Kurt Hornik Kurt.Hornik@wu-wien.ac.at
References
Magnus, J. R. and H. Neudecker (1999) Matrix Differential Calculus with Applications in Statistics and Econometrics, Second Edition, John Wiley.
Examples
x <- matrix( seq( 1, 4 ) )
y <- matrix( seq( 5, 8 ) )
print( direct.prod( x, y ) )
[Package matrixcalc version 1.0-6 Index]