Re: [Numpy-discussion] dot/tensordot limitations

2008-04-30 Thread Charles R Harris
On Tue, Apr 29, 2008 at 4:41 PM, Anne Archibald <[EMAIL PROTECTED]> wrote: > Timothy Hochberg has proposed a generalization of the matrix mechanism > to support manipulating arrays of linear algebra objects. For example, > one might have an array of matrices one wants to apply to an array of > vec

Re: [Numpy-discussion] dot/tensordot limitations

2008-04-29 Thread Charles R Harris
On Tue, Apr 29, 2008 at 10:31 PM, Travis E. Oliphant <[EMAIL PROTECTED]> wrote: > Nadav Horesh wrote: > > You open here a Pandora box: > > What should I do if I want to run an operation on elements of an array > which are not in the library. The usual answers are either use more memory ( > (A*B).s

Re: [Numpy-discussion] dot/tensordot limitations

2008-04-29 Thread Travis E. Oliphant
Nadav Horesh wrote: > You open here a Pandora box: > What should I do if I want to run an operation on elements of an array which > are not in the library. The usual answers are either use more memory ( > (A*B).sum(axis=1) ), or more time ([dot(A[i],B[i]) for i in len(A)]). > > Would your issue c

Re: [Numpy-discussion] dot/tensordot limitations

2008-04-29 Thread Travis E. Oliphant
Nadav Horesh wrote: > You open here a Pandora box: > What should I do if I want to run an operation on elements of an array which > are not in the library. The usual answers are either use more memory ( > (A*B).sum(axis=1) ), or more time ([dot(A[i],B[i]) for i in len(A)]). > > Would your issue c

Re: [Numpy-discussion] dot/tensordot limitations

2008-04-29 Thread Nadav Horesh
way to iterate over array in the C level, where the function/operation is defined in the C level, without the overhead of python? Nadav. -הודעה מקורית- מאת: [EMAIL PROTECTED] בשם Anne Archibald נשלח: ד 30-אפריל-08 01:41 אל: Discussion of Numerical Python נושא: [Numpy-discussion] dot

[Numpy-discussion] dot/tensordot limitations

2008-04-29 Thread Anne Archibald
Timothy Hochberg has proposed a generalization of the matrix mechanism to support manipulating arrays of linear algebra objects. For example, one might have an array of matrices one wants to apply to an array of vectors, to yield an array of vectors: In [88]: A = np.repeat(np.eye(3)[np.newaxis,...