[Numpy-discussion] permutation symbol

Nils Wagner nwagner at iam.uni-stuttgart.de
Tue Jun 30 07:11:58 EDT 2009


On Tue, 30 Jun 2009 11:22:34 +0200
  "Nils Wagner" <nwagner at iam.uni-stuttgart.de> 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-Civita 
symbol.
I found an explicit expression at 
http://en.wikipedia.org/wiki/Levi-Civita_symbol

How do I build the product of the Levi-Civita symbol 
\varepsilon_{ijk} and the two dimensional array
q_{kj}, i,j,k = 1,2,3 ?

Nils

-------------- next part --------------
A non-text attachment was scrubbed...
Name: levi_civita.py
Type: text/x-python
Size: 429 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090630/f9d3f7fe/attachment.py>


More information about the NumPy-Discussion mailing list