[SciPy-dev] kron function in scipy.linalg.basic
david.grant at telus.net
Thu Apr 7 03:59:30 CDT 2005
Travis Oliphant wrote:
> David Grant wrote:
>> Re-posting to scipy-dev as it might be a bug.
>> I'm using the kron() function in scipy.linalg.basic but I get an error
> Bugs like this are the most common, because they don't show up when
> you lazily test code you write from an interactive shell like emacs
> provides (which has all the names already imported).
> Thanks for finding them. The fix is easy (just edit the file and
> import the name that is missing).
Well it turned out it needed one more addition, the reshape function, so
here's the diff:
-(/usr/lib/python2.3/site-packages/scipy/linalg:$)-> diff -u
--- basic.py.orig 2005-04-07 00:52:23.000000000 -0700
+++ basic.py 2005-04-07 00:52:31.000000000 -0700
@@ -18,6 +18,8 @@
from scipy_base import asarray_chkfinite
+#added by DG (April 6, 2005)
+from Numeric import outerproduct, concatenate, reshape
David J. Grant
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 180 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-dev/attachments/20050407/9057e9af/attachment.vcf
More information about the Scipy-dev