]>
gitweb.michael.orlitzky.com - mjotex.git/blob - mjo-linear_algebra.tex
2 % Standard operations from linear algebra.
4 \ifx\havemjolinearalgebra\undefined
5 \def\havemjolinearalgebra{1}
9 \usepackage{amsmath
} % \lvert, \rVert, etc. and \operatorname.
12 \ifx\ocircle\undefined
16 \ifx\clipbox\undefined
17 % Part of the adjustbox package; needed to clip the \perp sign.
23 % Absolute value (modulus) of a scalar.
24 \newcommand*
{\abs}[1]{\left\lvert{#1}\right\rvert}
27 \newcommand*
{\norm}[1]{\left\lVert{#1}\right\rVert}
29 % The inner product between its two arguments.
30 \newcommand*
{\ip}[2]{\left\langle{#1},
{#2}\right\rangle}
32 % The tensor product of its two arguments.
33 \newcommand*
{\tp}[2]{ {#1}\otimes{#2} }
35 % The Kronecker product of its two arguments. The usual notation for
36 % this is the same as the tensor product notation used for \tp, but
37 % that leads to confusion because the two definitions may not agree.
38 \newcommand*
{\kp}[2]{ {#1}\odot{#2} }
40 % The adjoint of a linear operator.
41 \newcommand*
{\adjoint}[1]{ #1^
{*
} }
43 % The ``transpose'' of a linear operator; namely, the adjoint, but
44 % specialized to real matrices.
45 \newcommand*
{\transpose}[1]{ #1^
{T
} }
47 % The Moore-Penrose (or any other, I guess) pseudo-inverse of its
49 \newcommand*
{\pseudoinverse}[1]{ #1^
{+
} }
51 % The trace of an operator.
52 \newcommand*
{\trace}[1]{ \operatorname{trace
}\of{{#1}} }
55 % The "rank" of its argument, which is context-dependent. It can mean
58 % * the rank of a matrix,
59 % * the rank of a power-associative algebra (particularly an EJA),
60 % * the rank of an element in a Euclidean Jordan algebra.
62 \newcommand*
{\rank}[1]{ \operatorname{rank
}\of{{#1}} }
65 % The ``span of'' operator. The name \span is already taken.
66 \newcommand*
{\spanof}[1]{ \operatorname{span
}\of{{#1}} }
68 % The ``co-dimension of'' operator.
69 \newcommand*
{\codim}{ \operatorname{codim
} }
71 % The orthogonal projection of its second argument onto the first.
72 \newcommand*
{\proj}[2] { \operatorname{proj
}\of{#1,
#2} }
74 % The ``Automorphism group of'' operator.
75 \newcommand*
{\Aut}[1]{ \operatorname{Aut
}\of{{#1}} }
77 % The ``Lie algebra of'' operator.
78 \newcommand*
{\Lie}[1]{ \operatorname{Lie
}\of{{#1}} }
80 % The ``write a matrix as a big vector'' operator.
81 \newcommand*
{\vectorize}[1]{ \operatorname{vec
}\of{{#1}} }
83 % The ``write a big vector as a matrix'' operator.
84 \newcommand*
{\matricize}[1]{ \operatorname{mat
}\of{{#1}} }
86 % An inline column vector, with parentheses and a transpose operator.
87 \newcommand*
{\colvec}[1]{ \transpose{\left(
{#1}\right)
} }
89 % Bounded linear operators on some space. The required argument is the
90 % domain of those operators, and the optional argument is the
91 % codomain. If the optional argument is omitted, the required argument
93 \newcommand*
{\boundedops}[2][]{
95 \if\relax\detokenize{#1}\relax
105 % Orthogonal direct sum.
107 % First declare my ``perp in a circle'' operator, which is meant to be
108 % like an \obot or an \operp except has the correct weight circle. It's
109 % achieved by overlaying an \ocircle with a \perp, but only after we
110 % clip off the top half of the \perp sign and shift it up.
111 \DeclareMathOperator{\oplusperp}{\mathbin{
114 \raisebox{0.625\height}{$
\clipbox{0pt
0pt
0pt
0.5\height}{$
\perp$
}$
}\cr
118 % Now declare an orthogonal direct sum in terms of \oplusperp.
119 \newcommand*
{\directsumperp}[2]{ {#1}\oplusperp{#2} }