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
=======================================================================