Tensor operations in Mathematica
- To: Mathematica Mailling list <mathgroup at yoda.ncsa.uiuc.edu>
- Subject: Tensor operations in Mathematica
- From: uunet!nucthy.PHYSICS.ORST.EDU!ghe (Guangliang He)
- Date: Mon, 30 Oct 89 22:17:20 PST
In Mathematica, Inner[f, u, v, g] contracts the last index of tensor u
and first index of tensor v. But how can I contract 2 indexes of a rand
r tensor T to get a rank (r-2) tensor? When r=2, that is just the trace
of the matrix. But how about higher rank tensor?
--
=======================================================================
USMAIL: Guangliang He | INTERNET: ghe at PHYSICS.ORST.EDU
Department of Physics | BITNET: hegl at ORSTVM.BITNET
Weniger Hall 301 |
Oregon State University |
Corvallis, OR 97331-6507 | PHONE: (503) 737-4631
=======================================================================