[Numpy-discussion] segfault in vdot

2009-12-17 Thread Neal Becker
http://projects.scipy.org/numpy/ticket/1335 ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

[Numpy-discussion] np.void from 0d array + subclassing

2009-12-17 Thread Pierre GM
All, * What is the most efficient way to get a np.void object from a 0d structured ndarray ? * Is there any way to subclass np.void ? Thanks a lot in advance ! P. ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org

Re: [Numpy-discussion] np.void from 0d array + subclassing

2009-12-17 Thread Francesc Alted
A Thursday 17 December 2009 15:16:29 Pierre GM escrigué: All, * What is the most efficient way to get a np.void object from a 0d structured ndarray ? I normally use `PyArray_GETITEM` C macro for general n-d structured arrays. I suppose that this will work with 0-d arrays too. -- Francesc

Re: [Numpy-discussion] np.void from 0d array + subclassing

2009-12-17 Thread David Goldsmith
On Thu, Dec 17, 2009 at 6:16 AM, Pierre GM pgmdevl...@gmail.com wrote: All, * What is the most efficient way to get a np.void object from a 0d structured ndarray ? * Is there any way to subclass np.void ? The standard way (more or less) works for me: class myvoidclass(np.void): ...

Re: [Numpy-discussion] np.void from 0d array + subclassing

2009-12-17 Thread Pierre GM
On Dec 17, 2009, at 10:16 AM, Francesc Alted wrote: A Thursday 17 December 2009 15:16:29 Pierre GM escrigué: All, * What is the most efficient way to get a np.void object from a 0d structured ndarray ? I normally use `PyArray_GETITEM` C macro for general n-d structured arrays. I

Re: [Numpy-discussion] np.void from 0d array + subclassing

2009-12-17 Thread David Goldsmith
On Thu, Dec 17, 2009 at 2:11 PM, Pierre GM pgmdevl...@gmail.com wrote: Francesc, you're overestimating my knowledge of C... Can we stick to the Python implementation ? Here's the catch: IIUC, each individual element of a nD structured array is a void, provided the element can be accessed, ie

Re: [Numpy-discussion] np.void from 0d array + subclassing

2009-12-17 Thread Robert Kern
On Thu, Dec 17, 2009 at 16:11, Pierre GM pgmdevl...@gmail.com wrote: On Dec 17, 2009, at 10:16 AM, Francesc Alted wrote: A Thursday 17 December 2009 15:16:29 Pierre GM escrigué: All, * What is the most efficient way to get a np.void object from a 0d structured ndarray ? I normally use

Re: [Numpy-discussion] np.void from 0d array + subclassing

2009-12-17 Thread Pierre GM
On Dec 17, 2009, at 6:35 PM, Robert Kern wrote: On Thu, Dec 17, 2009 at 16:11, Pierre GM pgmdevl...@gmail.com wrote: On Dec 17, 2009, at 10:16 AM, Francesc Alted wrote: A Thursday 17 December 2009 15:16:29 Pierre GM escrigué: All, * What is the most efficient way to get a np.void object from

Re: [Numpy-discussion] np.void from 0d array + subclassing

2009-12-17 Thread Robert Kern
On Thu, Dec 17, 2009 at 17:41, Pierre GM pgmdevl...@gmail.com wrote: On Dec 17, 2009, at 6:35 PM, Robert Kern wrote: On Thu, Dec 17, 2009 at 16:11, Pierre GM pgmdevl...@gmail.com wrote: Here's the catch: IIUC, each individual element of a nD structured array is a void, provided the element

Re: [Numpy-discussion] np.void from 0d array + subclassing

2009-12-17 Thread David Goldsmith
On Thu, Dec 17, 2009 at 3:46 PM, Robert Kern robert.k...@gmail.com wrote: On Thu, Dec 17, 2009 at 17:41, Pierre GM pgmdevl...@gmail.com wrote: Well, that's slick and really neat !!! Typically Robert K's... Thanks a lot !!! Yeah, sometimes I think the only reason we have a mailing list is so

Re: [Numpy-discussion] [AstroPy] Rotating and Transforming Vectors--Flight Path of a Celestial Body

2009-12-17 Thread Wayne Watson
It's starting to come back to me. I found a few old graphics books that get into transformation matrices and such. Yes, earth centered. I ground out some code with geometry and trig that at least gets the first point on the path right. I think I can probably apply a rotation around the x-axis

Re: [Numpy-discussion] [AstroPy] Rotating and Transforming Vectors--Flight Path of a Celestial Body

2009-12-17 Thread Anne Archibald
2009/12/18 Wayne Watson sierra_mtnv...@sbcglobal.net: It's starting to come back to me. I found a few old graphics books that get into transformation matrices and such. Yes, earth centered. I ground out some code with geometry and trig that at least gets the first point on the path right. I