File: all_contractions.tex

package info (click to toggle)
cadabra2 2.4.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 78,732 kB
  • sloc: ansic: 133,450; cpp: 92,064; python: 1,530; javascript: 203; sh: 184; xml: 182; objc: 53; makefile: 51
file content (25 lines) | stat: -rw-r--r-- 852 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
\cdbalgorithm{all\_contractions}{}

Construct all full contractions of the given tensors, taking into
account mono-term symmetries. Example,
\begin{screen}{1,2,3,4,5}
A_{m n}::Symmetric.
A_{m n}::Traceless.
{m,n,p,q,r,s,t,u}::Indices(vector).
{m,n,p,q,r,s,t,u}::Integer(0..9).
obj14:= A_{m n} A_{p q} A_{r s} A_{t u};
@all_contractions(%){2};
A_{m n} A_{m n} A_{p q} A_{p q} + A_{m n} A_{m p} A_{n q} A_{p q};
\end{screen}

This command is not entirely correct at the moment: it determines the
total number of singlets correctly, but does not generate parity-odd
contractions (the ones involving an epsilon tensor). It also does not
know about dimension-dependent identities. If this is a problem for
your application, contact the author for an experimental version of
cadabra.

\cdbseeprop{Symmetric}
\cdbseeprop{Traceless}
\cdbseealgo{canonicalise}