File: Matrix.tex

package info (click to toggle)
cadabra 1.46-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,244 kB
  • sloc: cpp: 33,188; ansic: 2,724; makefile: 329; yacc: 180; sh: 157; python: 45; lex: 38; lisp: 19
file content (27 lines) | stat: -rw-r--r-- 610 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
26
27
\cdbproperty{Matrix}{}

Declares an object to have two implicit indices, thus making it a
matrix object. This is useful in combination with the index bracket
notation. Example:
\begin{screen}{1,2}
{m,n,p,q}::Indices.
A::Matrix.
V::ImplicitIndex.
(A V)_{m};
@expand!(%);
A_{m n} V_{n};
\end{screen}
Objects with the \subsprop{Matrix} property automatically become
non-commuting among themselves, but retain their commutativity
properties with other objects.
\begin{screen}{1,2}
{A,C}::Matrix.
A C B A;
@prodsort!(%);
A B C A;
\end{screen}
~

\cdbseealgo{prodsort}
\cdbseealgo{Spinor}
\cdbseeprop{ImplicitIndex}