In this case kron(a,b) is a matrix 10000x10000 !! a test should be added to see if there is enough free space before to make the computation.
In this case kron(a,b) is a matrix 10000x10000 !! a test should be added to see if there is enough free space before to make the computation.