serious flaw in KroneckerProduct with SparseArrays?
- To: mathgroup at smc.vnet.net
- Subject: [mg91416] serious flaw in KroneckerProduct with SparseArrays?
- From: wpb <w.p.bergsma at lse.ac.uk>
- Date: Thu, 21 Aug 2008 04:14:04 -0400 (EDT)
It appears KroneckerProduct doesn't work properly with SparseArrays which have a nonzero constant. Below, the end result should be "True": In[349]:= a=SparseArray[{1->0},{2},1] b=Normal[a]; u=KroneckerProduct[a,a]//Normal v=KroneckerProduct[b,b] u==v Out[349]= SparseArray[<1>,{2},1] Out[351]= {{0,1},{1,1}} Out[352]= {{0,0},{0,1}} Out[353]= False