Function:
kronprod - Kronecker product of matrices and/or vectors
Calling sequence:
kronprod(A,B,...);
Parameters:
A, B, ...
- matrices, vectors or lists
Description:
-
This function computes the Kronecker product (outer product) of vectors and matrices.
-
If all arguments are vectors or lists, the result is a vector, otherwise it is a matrix. Vectors are considered to be column vectors. For the row vector corresponding to vector or list
v
, use
transpose(v)
. Thus for the outer product of vectors
u
and
v
in the form of a matrix with rows corresponding to the entries of
v
and columns corresponding to the entries of
u
, use
kronprod(transpose(u), v)
.
-
In general each row of the result corresponds to a choice of a row from each of the arguments, and each column of the result corresponds to a choice of a column from each of the arguments.
-
Note that for the outer product of two Vectors, you can use
LinearAlgebra[OuterProductMatrix]
.
-
This function is part of the
Maple Advisor Database
library.
Examples:
>
kronprod(transpose([a,b]),[c,d]);
>
kronprod([a,b],[c,d]);
>
kronprod(matrix([[a,b],[c,d]]),matrix([[e,f,g],[h,i,j]]));
>
kronprod([a,b],[c,d],[e,f]);