Skip to contents

TDA's mkp, matching base R's kronecker(A, B) exactly.

Usage

tda_mkp(A, B, dir = tempfile("tda"))

Arguments

A, B

numeric matrices.

dir

working directory.

Value

A numeric matrix, nrow(A)*nrow(B) by ncol(A)*ncol(B).

Examples

tda_mkp(matrix(1:4, 2), matrix(5:8, 2))
#>      [,1] [,2] [,3] [,4]
#> [1,]    5    7   15   21
#> [2,]    6    8   18   24
#> [3,]   10   14   20   28
#> [4,]   12   16   24   32