[SciPy-dev] kron function in scipy.linalg.basic
David Grant
david.grant at telus.net
Thu Apr 7 04:59:30 EDT 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 basic.py
--- 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
import calc_lwork
+#added by DG (April 6, 2005)
+from Numeric import outerproduct, concatenate, reshape
class LinAlgError(Exception):
pass
--
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://mail.python.org/pipermail/scipy-dev/attachments/20050407/9057e9af/attachment.vcf>
More information about the SciPy-Dev
mailing list