Re: [Numpy-discussion] how does numpy handle views and garbage collection?

2009-09-30 Thread Travis Oliphant
On Sep 30, 2009, at 6:43 AM, Chris Colbert wrote: Lets say I have function that applies a homogeneous transformation matrix to an Nx3 array of points using np.dot. since the matrix is 4x4 I have to add a 4 column of ones to the array so the function looks something like this: def foo(): <

[Numpy-discussion] how does numpy handle views and garbage collection?

2009-09-30 Thread Chris Colbert
Lets say I have function that applies a homogeneous transformation matrix to an Nx3 array of points using np.dot. since the matrix is 4x4 I have to add a 4 column of ones to the array so the function looks something like this: def foo(): <--snip--> pts = np.column_stack((Xquad, Yquad, Z