[SciPy-user] kron and outerproduct

David Grant david.grant at telus.net
Wed Apr 6 13:31:35 CDT 2005


I'm using the kron() function in scipy.linalg.basic but I get an error

I do this:

>>> from scipy.linalg.basic import kron
>>> from Numeric import *
>>> a=ones((2,2))
>>> b=ones((2,2))
>>> kron(a,b)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/site-packages/scipy/linalg/basic.py", line
506, in kron
    o = outerproduct(a,b)
NameError: global name 'outerproduct' is not defined

I cannot understand why outerproduct would not be imported in basic.py....

-- 
David J. Grant
http://www.davidandnasha.ca

-------------- next part --------------
A non-text attachment was scrubbed...
Name: david.grant.vcf
Type: text/x-vcard
Size: 180 bytes
Desc: not available
Url : http://www.scipy.net/pipermail/scipy-user/attachments/20050406/62477c99/david.grant.vcf


More information about the SciPy-user mailing list