2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-25 22:38:04 +02:00
LaTeX-examples/documents/math-sylvester-diagonal-matrix/math-sylvester-diagonal-matrix.tex

42 lines
961 B
TeX
Raw Normal View History

\documentclass{article}
\usepackage[pdftex,active,tightpage]{preview}
2012-08-30 14:56:42 +02:00
\setlength\PreviewBorder{0mm}
\usepackage{amsmath,array}
\renewcommand\arraycolsep{4pt} % default value: 6pt
\begin{document}
\begin{preview}
\begin{equation*}
2012-08-30 14:56:42 +02:00
S^T \cdot A \cdot S =
\left( \,
\begin{array}{r@{}r@{}r r r} % @{} is used twice to suppress intercolumn whitespace
2012-08-30 14:56:42 +02:00
\underbrace{
\begin{array}{rrr} % First block (1)
1 & & \\
& \ddots & \\
& & 1 \\
\end{array}
2012-08-30 14:56:42 +02:00
}_{r_+(s)-mal}\\
&
\underbrace{
\begin{array}{rrr} % Second block (-1)
-1 & & \\
& \ddots & \\
& & -1\\
\end{array}
}_{r_{-}(s)-mal} \\
& &
\underbrace{
\begin{array}{rrr} % Third block
0 & & \\
& \ddots & \\
& & 0\\
\end{array}
}_{r_0(s)-mal} \\
\end{array}\,\right)
\end{equation*}
\end{preview}
\end{document}