kronprod

Kronecker matrix product object.

Syntax

K = kronprod(A,B)

K = kronprod(A,B,P)

Inputs

A
First argument.
Dimension: scalar | vector | matrix
B
Second argument.
Dimension: scalar | vector | matrix
P
An optional permutation matrix such that the product is P*kron(A,B)*P'.
Dimension: matrix

Outputs

K
The Kronecker product object.

Example

Vector inputs.

K = kronprod([1,2,3;4,5,6], [10,20;30,40]);
Kronecker product of A and B
A = 
[Matrix] 2 x 3
1  2  3
4  5  6
B = 
[Matrix] 2 x 2
10  20
30  40

Comments

Certain operations on a Kronecker product can be applied to A and B without computing the actual product, kron(A,B). The kronprod object allows this short cut to be performed when possible. Where unsupported, the user should use kron or full.

The currently supported functions for kronprod objects are: disp, size, issquare, isreal, issparse, full, transpose, ctranspose, det, inv, pinv, mldivide, times and mtimes.