[Matrix-SIG] Problem with integer arrays?

Gey-Hong Gweon gweon@umich.edu
Tue, 06 Oct 1998 13:42:57 -0400


dlr@postbox.ius.cs.cmu.edu wrote:

> >>> import Numeric
> >>> Numeric.__version__
> '1.4'
> >>> a = Numeric.ones(5)
> >>> a
> array([1, 1, 1, 1, 1])
> >>> (-1) * a
> array([-1, 1, -1, 1, -1])

I am glad that you point this out! I had the same experience with LLNL
python package version 5. Then I found out that version 4 didn't have
this bug, so I am using this old version right now :( ... If I decide to
go back to version 5 (what are the benefits, I wonder ... pardon me, I
joined this discussion group only yesterday), I will try your fix.
-- 
Gey-Hong Gweon, Ph.D. candidate
The University of Michigan, Physics Department, Ann Arbor, MI 48109
(734) 647-9434 (Office), 763-3417 (Lab), 763-9694 (Fax)