I am looking for an efficient way to calculate the Kronecker product of two large matrices. I tried using the kronecker() method as follows:
I = diag(700) data = replicate(15, rnorm(120)) test = kronecker(I,data)
However, it takes a long time to complete, and then the following error appears:
Error: cannot allocate vector of size 6.8 Gb
Mayou source share