Re: [Numpy-discussion] Advice on converting Numarray C extension?

2009-06-30 Thread Charles R Harris
On Tue, Jun 30, 2009 at 12:31 PM, Russell E. Owen wrote: > In article > , > Charles R Harris wrote: > > > On Mon, Jun 29, 2009 at 4:17 PM, Russell E. Owen > > wrote: > > > > > In article > > > , > > > Charles R Harris wrote: > > > > > > > On Mon, Jun 29, 2009 at 3:03 PM, Russell E. Owen > > >

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread Charles R Harris
On Tue, Jun 30, 2009 at 2:02 PM, David Goldsmith wrote: > > No, but my guess is that it might be useful in numerical General > Relativity, e.g., as well as pedagogically in teaching differential geometry > and tensor algebra. > > DG > It shouldn't be difficult to generate all the permutations of

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread David Goldsmith
No, but my guess is that it might be useful in numerical General Relativity, e.g., as well as pedagogically in teaching differential geometry and tensor algebra. DG --- On Tue, 6/30/09, Nils Wagner wrote: > From: Nils Wagner > Subject: Re: [Numpy-discussion] permutation symbol > To: "Discus

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread Charles R Harris
On Tue, Jun 30, 2009 at 12:26 PM, Nils Wagner wrote: > On Tue, 30 Jun 2009 11:10:39 -0600 > Charles R Harris wrote: > > On Tue, Jun 30, 2009 at 10:56 AM, Charles R Harris < > > charlesr.har...@gmail.com> wrote: > > > >> > >> > >> On Tue, Jun 30, 2009 at 10:40 AM, Nils Wagner < > >> nwag...@iam.

Re: [Numpy-discussion] Advice on converting Numarray C extension?

2009-06-30 Thread Charles R Harris
On Tue, Jun 30, 2009 at 12:31 PM, Russell E. Owen wrote: > In article > , > Charles R Harris wrote: > > > On Mon, Jun 29, 2009 at 4:17 PM, Russell E. Owen > > wrote: > > > > > In article > > > , > > > Charles R Harris wrote: > > > > > > > On Mon, Jun 29, 2009 at 3:03 PM, Russell E. Owen > > >

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread Charles R Harris
On Tue, Jun 30, 2009 at 12:30 PM, David Goldsmith wrote: > > Great, Nils! Now, can you generalize it to N-D for us? ;-) > > It's generally better to use the exterior calculus, determinants, and various other tricks. Chuck ___ Numpy-discussion mailing l

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread Nils Wagner
On Tue, 30 Jun 2009 11:30:51 -0700 (PDT) David Goldsmith wrote: > > Great, Nils! Now, can you generalize it to N-D for us? >;-) > > DG Just curious - Do you have any application for N-D case in mind ? Nils ___ Numpy-discussion mailing list Num

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread Charles R Harris
On Tue, Jun 30, 2009 at 12:26 PM, Nils Wagner wrote: > On Tue, 30 Jun 2009 11:10:39 -0600 > Charles R Harris wrote: > > On Tue, Jun 30, 2009 at 10:56 AM, Charles R Harris < > > charlesr.har...@gmail.com> wrote: > > > >> > >> > >> On Tue, Jun 30, 2009 at 10:40 AM, Nils Wagner < > >> nwag...@iam.

Re: [Numpy-discussion] Advice on converting Numarray C extension?

2009-06-30 Thread Russell E. Owen
In article , Charles R Harris wrote: > On Mon, Jun 29, 2009 at 4:17 PM, Russell E. Owen > wrote: > > > In article > > , > > Charles R Harris wrote: > > > > > On Mon, Jun 29, 2009 at 3:03 PM, Russell E. Owen > > > wrote: > > > > > > > I have an old Numarray C extension (or, rather, a Python

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread David Goldsmith
Great, Nils! Now, can you generalize it to N-D for us? ;-) DG --- On Tue, 6/30/09, Nils Wagner wrote: > From: Nils Wagner > Subject: Re: [Numpy-discussion] permutation symbol > To: "Discussion of Numerical Python" > Date: Tuesday, June 30, 2009, 11:26 AM > On Tue, 30 Jun 2009 11:10:39 -0600

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread David Goldsmith
Hi! I can't help but wonder if - out there somewhere - there's an optimized algorithm for implementing the general N-D Permutation Symbol: "The symbol can be generalized to an arbitrary number of elements, in which case the permutation symbol is (-1)^(i(p)), where i(p) is the number of transp

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread Nils Wagner
On Tue, 30 Jun 2009 11:10:39 -0600 Charles R Harris wrote: > On Tue, Jun 30, 2009 at 10:56 AM, Charles R Harris < > charlesr.har...@gmail.com> wrote: > >> >> >> On Tue, Jun 30, 2009 at 10:40 AM, Nils Wagner < >> nwag...@iam.uni-stuttgart.de> wrote: >> >>> On Tue, 30 Jun 2009 10:27:05 -0600 >>>

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread Charles R Harris
On Tue, Jun 30, 2009 at 10:56 AM, Charles R Harris < charlesr.har...@gmail.com> wrote: > > > On Tue, Jun 30, 2009 at 10:40 AM, Nils Wagner < > nwag...@iam.uni-stuttgart.de> wrote: > >> On Tue, 30 Jun 2009 10:27:05 -0600 >> Charles R Harris wrote: >> > On Tue, Jun 30, 2009 at 5:11 AM, Nils Wagner

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread Charles R Harris
On Tue, Jun 30, 2009 at 10:40 AM, Nils Wagner wrote: > On Tue, 30 Jun 2009 10:27:05 -0600 > Charles R Harris wrote: > > On Tue, Jun 30, 2009 at 5:11 AM, Nils Wagner > > wrote: > > > >> On Tue, 30 Jun 2009 11:22:34 +0200 > >> "Nils Wagner" wrote: > >> > >>> Hi all, > >>> > >>> How can I build

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread Nils Wagner
On Tue, 30 Jun 2009 10:27:05 -0600 Charles R Harris wrote: > On Tue, Jun 30, 2009 at 5:11 AM, Nils Wagner > wrote: > >> On Tue, 30 Jun 2009 11:22:34 +0200 >> "Nils Wagner" wrote: >> >>> Hi all, >>> >>> How can I build the following product with numpy >>> >>> q_i = \varepsilon_{ijk} q_{kj} >>

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread Charles R Harris
On Tue, Jun 30, 2009 at 5:11 AM, Nils Wagner wrote: > On Tue, 30 Jun 2009 11:22:34 +0200 > "Nils Wagner" wrote: > >> Hi all, >> >> How can I build the following product with numpy >> >> q_i = \varepsilon_{ijk} q_{kj} >> >> where \varepsilon_{ijk} denotes the permutation symbol. >> >> Nils >> >

Re: [Numpy-discussion] permutation symbol

2009-06-30 Thread Nils Wagner
On Tue, 30 Jun 2009 11:22:34 +0200 "Nils Wagner" wrote: Hi all, How can I build the following product with numpy q_i = \varepsilon_{ijk} q_{kj} where \varepsilon_{ijk} denotes the permutation symbol. Nils Sorry for replying to myself. The permutation symbol is also known as the Levi-Civ

[Numpy-discussion] permutation symbol

2009-06-30 Thread Nils Wagner
Hi all, How can I build the following product with numpy q_i = \varepsilon_{ijk} q_{kj} where \varepsilon_{ijk} denotes the permutation symbol. Nils http://mathworld.wolfram.com/PermutationSymbol.html ___ Numpy-discussion mailing list Numpy-discus