
Michel Sanner wrote:
I built Numeric on a Dec Alpha under OSF1 V4.0. I built fine but when I ran it I witnessed strange behavior.
a = Numeric.identity(4) a.shape = (16,)
would raise an exception about the size of the array needing to remain the same ???
I have seen the same behavior on a Dec Alpha running RedHat Linux, with Numeric compiled with gcc. The other random pieces of Numeric that I tried seemed to work correctly. Chris ========================================================================== Chris Myers Cornell Theory Center -------------------------------------------------------------------------- 636 Rhodes Hall email: myers@tc.cornell.edu Cornell University phone: (607) 255-5894 / fax: (607) 254-8888 Ithaca, NY 14853 http://www.tc.cornell.edu/~myers -------------------------------------------------------------------------- "To thine own self be blue." - Polonious Funk ========================================================================== On Sat, 24 Jun 2000 numpy-discussion-admin@lists.sourceforge.net wrote:
Date: Sat, 24 Jun 2000 12:19:28 -0700 From: numpy-discussion-admin@lists.sourceforge.net Reply-To: numpy-discussion@lists.sourceforge.net To: numpy-discussion@lists.sourceforge.net Subject: Numpy-discussion digest, Vol 1 #70 - 1 msg
Send Numpy-discussion mailing list submissions to numpy-discussion@lists.sourceforge.net
To subscribe or unsubscribe via the web, visit http://lists.sourceforge.net/mailman/listinfo/numpy-discussion or, via email, send a message with subject or body 'help' to numpy-discussion-request@lists.sourceforge.net You can reach the person managing the list at numpy-discussion-admin@lists.sourceforge.net
When replying, please edit your Subject line so it is more specific than "Re: Contents of Numpy-discussion digest..."
Today's Topics:
1. Numeric on Dec Alpha (Michel Sanner)
--__--__--
Message: 1 From: "Michel Sanner" <sanner@scripps.edu> Date: Fri, 23 Jun 2000 12:22:24 -0700 To: numpy-discussion@lists.sourceforge.net Subject: [Numpy-discussion] Numeric on Dec Alpha
Hi, I posted this message on the python-list a while ago and did not hear anything .. so I try here :)
I built Numeric on a Dec Alpha under OSF1 V4.0. I built fine but when I ran it I witnessed strange behavior.
a = Numeric.identity(4) a.shape = (16,)
would raise an exception about the size of the array needing to remain the same ???
Using the debugger I found in arrayobject.c:2201
if (PyArray_As1D(&shape, (char **)&dimensions, &n, PyArray_LONG) == -1) return NULL;
After this call shape [0] is 4 BUT shape[1] is 0 !
I changed the code to if (PyArray_As1D(&shape, (char **)&dimensions, &n, PyArray_INT) == -1) return NULL;
and got the right result.
Did anyone else run into this kind of preblems ? what is the correct way to fix that ?
thanks
-Michel
--
-----------------------------------------------------------------------
>>>>> AREA CODE CHANGE <<<<<<<<< we are now 858 !!!!!!!
Michel F. Sanner Ph.D. The Scripps Research Institute Assistant Professor Department of Molecular Biology 10550 North Torrey Pines Road Tel. (858) 784-2341 La Jolla, CA 92037 Fax. (858) 784-2860 sanner@scripps.edu http://www.scripps.edu/sanner -----------------------------------------------------------------------
--__--__--
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@lists.sourceforge.net http://lists.sourceforge.net/mailman/listinfo/numpy-discussion
End of Numpy-discussion Digest