答案1
我认为使用 TikZ 输入大矩阵最方便,而且看起来很整洁。
我使用了 Fabian Pijcke 答案中的矩阵代码
输出
代码
\documentclass[tikz]{standalone}
\usetikzlibrary{matrix}
\begin{document}
\tikzset
{
myStyle/.style=
{
help lines,
},
}
\begin{tikzpicture}
\matrix (myMatrix)
[
matrix of math nodes,
nodes={minimum size=7.5mm},
left delimiter={[},right delimiter={]}
]
{
%{{{
t_0 & t_{-1} & & t_{-m} & 0 & & & & 0 & t_m & & t_1 \\
t_1 & & & & & & & & & & & \\
& & & & & & & & & & & t_m \\
t_m & & & & & & & & & & & 0 \\
0 & & & & & & & & & & & \\
& & & & & & & & & & & \\
& & & & & & & & & & & \\
& & & & & & & & & & & 0 \\
0 & & & & & & & & & & & t_{-m} \\
t_{-m} & & & & & & & & & & & \\
& & & & & & & & & & & t_{-1} \\
t_{-1} & & t_{-m} & 0 & & & & 0 & t_m & & t_1 & t_0 \\
%}}}
};
\foreach \k in {2,4,5,9,10}
{
\pgfmathtruncatemacro{\i}{13-\k}
\draw [myStyle](myMatrix-1-\k) -- (myMatrix-\i-12);
\draw [myStyle](myMatrix-\k-1) -- (myMatrix-12-\i);
}
\draw [myStyle](myMatrix-1-1) -- (myMatrix-12-12);
\foreach \i/\j in {2/4,5/9,10/12}
{
\draw [myStyle](myMatrix-1-\i) -- (myMatrix-1-\j);
\draw [myStyle](myMatrix-\i-1) -- (myMatrix-\j-1);
\pgfmathtruncatemacro{\iM}{13-\i}
\pgfmathtruncatemacro{\jM}{13-\j}
\draw [myStyle](myMatrix-\iM-12) -- (myMatrix-\jM-12);
\draw [myStyle](myMatrix-12-\iM) -- (myMatrix-12-\jM);
}
\end{tikzpicture}
\end{document}
答案2
我建议使用以下矩阵,我删除了(在我看来)误导性的中线,并更严格地指定了零点的位置。
\documentclass[convert={outfile=\jobname.png}]{standalone}
\usepackage{amsmath,amssymb}
\begin{document}
$C_n = \left [ \begin{array}{llllllllllll}
t_0 & t_{-1} & \cdots & t_{-m} & 0 & \cdots & & \cdots & 0 & t_m & \cdots & t_1 \\
t_1 & \ddots & \ddots & & \ddots & \ddots & & & & \ddots & \ddots & \vdots \\
\vdots & \ddots & & & & & & & & & \ddots & t_m \\
t_m & & & & & & & & & & & 0 \\
0 & \ddots & & & & & & & & & & \vdots \\
\vdots & \ddots & & & & & & & & & \\
& & & & & & & & & & \ddots & \vdots \\
\vdots & & & & & & & & & & \ddots & 0 \\
0 & & & & & & & & & & & t_{-m} \\
t_{-m} & \ddots & & & & & & & & & & \vdots \\
\vdots & \ddots & \ddots & & & & \ddots & \ddots & & \ddots & \ddots & t_{-1} \\
t_{-1} & \cdots & t_{-m} & 0 & \cdots & & \cdots & 0 & t_m & \cdots & t_1 & t_0
\end{array} \right ]$
\end{document}
然而,我相信这个矩阵最好用代数表达式来表示,例如
矩阵 的行r
和列的值为,大小为,为:c
C_n
n x n