summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/nchairx/source/chairxmathLinalg.dtx
blob: 21f84c5ad281fb99891aba7ed8505afbc99a6b1c (plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
% \iffalse meta-comment
%
% Copyright (C) 2018 - 2021 by ChairX
%
% This file may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.3 of this license or (at your option) any later
% version.  The latest version of this license is in:
%
%    http://www.latex-project.org/lppl.txt
%
% and version 1.3 or later is part of all distributions of
% LaTeX version 2005/12/01 or later.
%
% This file contains the implementation of all linear algebra related macros .
%
% Macros have to be described by (delete the first %)
% %\begin{macro}{\macro}
% % Description of the implementation.
% %    \begin{macrocode}
%\newcommand{\macro}[]         {}
% %    \end{macrocode}
% %\end{macro}
%
% The implementation and description will appear in the implementation
% part of the documentation. Use \subsubsection{} etc. for structuring.
%
% The documentation of the macros defined here has to be written in
% chairxmathLinalgDoc.dtx
%\fi
%
% First we check of macros should be included:
%    \begin{macrocode}
\if@loadmath
%    \end{macrocode}
%
%\subsubsection{General Linear Algebra}
%
%\begin{macro}{\tr}
%    \begin{macrocode}
\newcommand{\tr}{\operatorname{\ch@irxoperatorfont{tr}}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\rank}
%    \begin{macrocode}
\newcommand{\rank}{\operatorname{\ch@irxoperatorfont{rank}}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\codim}
%    \begin{macrocode}
\newcommand{\codim}{\operatorname{\ch@irxoperatorfont{codim}}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\diag}
%    \begin{macrocode}
\newcommand{\diag}{\operatorname{\ch@irxoperatorfont{diag}}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\Trans}
%    \begin{macrocode}
\newcommand{\Trans}{{\ch@irxscriptfont{\scriptscriptstyle{T}}}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\Mat}
%    \begin{macrocode}
\newcommand{\Mat}{\ch@irxoperatorfont{M}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\SymMat}
%    \begin{macrocode}
\newcommand{\SymMat}{\ch@irxoperatorfont{SymMat}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\ann}
%    \begin{macrocode}
\newcommand{\ann}{\ch@irxscriptfont{ann}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\Span}
%    \begin{macrocode}
\newcommand{\Span}[1][]{\operatorname{\ch@irxoperatorfont{span}_{#1}}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\basis}
%    \begin{macrocode}
\newcommand{\basis}[1]{\ch@irxbasisfont{#1}}
%    \end{macrocode}
%\end{macro}
%
%\subsubsection{Tensors}
%
%\begin{macro}{\tensor}
%    \begin{macrocode}
\renewcommand{\tensor}[1][{}]{\mathbin{\otimes_{\scriptscriptstyle{#1}}}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\Tensor}
%    \begin{macrocode}
\newcommand{\Tensor}{\ch@irxoperatorfont{T}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\Anti}
%    \begin{macrocode}
\newcommand{\Anti}{\Lambda}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\Sym}
%    \begin{macrocode}
\newcommand{\Sym}{\ch@irxoperatorfont{S}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\Symmetrizer}
%    \begin{macrocode}
\newcommand{\Symmetrizer}{\operatorname{\ch@irxoperatorfont{Sym}}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\AntiSymmetrizer}
%    \begin{macrocode}
\newcommand{\AntiSymmetrizer}{\operatorname{\ch@irxoperatorfont{Alt}}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\ins}
%    \begin{macrocode}
\newcommand{\ins}{\operatorname{\ch@irxoperatorfont{i}}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\jns}
%    \begin{macrocode}
\newcommand{\jns}{\operatorname{\ch@irxoperatorfont{j}}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\insa}
%    \begin{macrocode}
\newcommand{\insa}{\ins_{\ch@irxscriptfont{a}}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\inss}
%    \begin{macrocode}
\newcommand{\inss}{\ins_{\ch@irxscriptfont{s}}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\degs}
%    \begin{macrocode}
\newcommand{\degs}{\ch@irxoperatorfont{deg}_{\ch@irxscriptfont{s}}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\dega}
%    \begin{macrocode}
\newcommand{\dega}{\ch@irxoperatorfont{deg}_{\ch@irxscriptfont{a}}}
%    \end{macrocode}
%\end{macro}
%
%
%\subsubsection{Inner Products}
%
%\begin{macro}{\SP}
%    \begin{macrocode}
\DeclarePairedDelimiter{\SP} {\langle}{\rangle}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\littlepara}
%    \begin{macrocode}
\newcommand{\littlepara}{{\scriptscriptstyle\parallel}}
%    \end{macrocode}
%\end{macro}
%
%\begin{macro}{\IP}
%    \begin{macrocode}
\newcommand{\IP}[6][{}]{\decorate*[^{#2}_{#3}]{\SP[#1]{#4}}{^{#5}_{#6}}}
%    \end{macrocode}
%\end{macro}
%
%    \begin{macrocode}
\fi
%    \end{macrocode}