http://projects.scipy.org/numpy/ticket/1335
___
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion
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
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
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):
...
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
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
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
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
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
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
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
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
12 matches
Mail list logo