Skip to contents

Computes the Kronecker product \(A \otimes B\) and returns the result as an adgeMatrix. Accepts plain matrices or any aMatrix subclass. For a lazy variant that avoids forming the full product see kron_matrix.

Usage

kron(A, B)

Arguments

A, B

Matrices or aMatrix objects.

Value

An adgeMatrix of dimension (nrow(A)*nrow(B)) x (ncol(A)*ncol(B)).

See also