我已插入下表。但出现很多错误,提示表中缺少 $。有人能帮助我吗?
\begin{landscape}
\begin{table}[!h]
\centering
\footnotesize
\begin{tabular}{|c|c|c|c|c|c|c|c|c|}
\hline
\textbf{Benchmark} & \textbf{Parameter} & \textbf{Class S} & \textbf{Class W} & \textbf{Class A} & \textbf{Class B} & \textbf{Class C} & \textbf{Class D} & \textbf{Class E} \\ \hline
\multirow{4}{*}{CG} & no. of rows & 1400 & 7000 & 14000 & 75000 & 150000 & 1500000 & 9000000 \\ \cline{2-9}
& no. of nonzeros & 7 & 8 & 11 & 13 & 15 & 21 & 26 \\ \cline{2-9}
& no. of iterations & 15 & 15 & 15 & 75 & 75 & 100 & 100 \\ \cline{2-9}
& eigenvalue shift & 10 & 12 & 20 & 60 & 110 & 500 & 1500 \\ \hline
EP & \begin{tabular}[c]{@{}c@{}}no. of random-number \\ pairs\end{tabular} & \[2^2^4\] & \[2^2^5\] & \[2^2^8\] & \[2^3^0\] & \[2^3^2\] & \[2^3^6\] & \[2^4^0\] \\ \hline
\multirow{2}{*}{FT} & grid size & \begin{tabular}[c]{@{}c@{}}64 x 64 \\ x 64\end{tabular} & \begin{tabular}[c]{@{}c@{}}128 x 128 \\ x 32\end{tabular} & \begin{tabular}[c]{@{}c@{}}256 x 256 \\ x 128\end{tabular} & \begin{tabular}[c]{@{}c@{}}512 x 256\\ x 256\end{tabular} & \begin{tabular}[c]{@{}c@{}}512 x 512\\ x 512\end{tabular} & \begin{tabular}[c]{@{}c@{}}2048 x 1024\\ x 1024\end{tabular} & \begin{tabular}[c]{@{}c@{}}4096 x 2048\\ x 2048\end{tabular} \\ \cline{2-9}
& no. of iterations & 6 & 6 & 6 & 20 & 20 & 25 & 25 \\ \hline
\multirow{2}{*}{IS} & no. of keys & \[2^1^6\] & \[2^2^0\] & \[2^2^3\] & \[2^2^5\] & \[2^2^7\] & \[2^3^1\] & \\ \cline{2-9}
& key max. value & \[2^1^1^\] & \[2^1^6\] & \[2^1^9\] & \[2^2^1\] & \[2^2^3\] & \[2^2^7\] & \\ \hline
\multirow{2}{*}{MG} & grid size & \begin{tabular}[c]{@{}c@{}}32 x 32\\ x 32\end{tabular} & \begin{tabular}[c]{@{}c@{}}128 x 128\\ x 128\end{tabular} & \begin{tabular}[c]{@{}c@{}}256 x 256\\ x 256\end{tabular} & \begin{tabular}[c]{@{}c@{}}256 x 256\\ x 256\end{tabular} & \begin{tabular}[c]{@{}c@{}}512 x 512\\ x 512\end{tabular} & \begin{tabular}[c]{@{}c@{}}1024 x 1024\\ x 1024\end{tabular} & \begin{tabular}[c]{@{}c@{}}2048 x 2048\\ x 2048\end{tabular} \\ \cline{2-9}
& no. of iterations & 4 & 4 & 4 & 20 & 20 & 50 & 50 \\ \hline
\multirow{3}{*}{BT} & grid size & \begin{tabular}[c]{@{}c@{}}12 x 12\\ x 12\end{tabular} & \begin{tabular}[c]{@{}c@{}}24 x 24\\ x 24\end{tabular} & \begin{tabular}[c]{@{}c@{}}64 x 64\\ x 64\end{tabular} & \begin{tabular}[c]{@{}c@{}}102 x 102\\ x 102\end{tabular} & \begin{tabular}[c]{@{}c@{}}162 x 162\\ x 162\end{tabular} & \begin{tabular}[c]{@{}c@{}}408 x 408\\ x 408\end{tabular} & \begin{tabular}[c]{@{}c@{}}1020 x 1020\\ x 1020\end{tabular} \\ \cline{2-9}
& no. of iterations & 60 & 200 & 200 & 200 & 200 & 250 & 250 \\ \cline{2-9}
& time step & 0.01 & 0.0008 & 0.0008 & 0.0003 & 0.0001 & 0.00002 & 0.000004 \\ \hline
\multirow{2}{*}{(BT-IO)} & write interval & 5 & 5 & 5 & 5 & 5 & 5 & 5 \\ \cline{2-9}
& Gbytes written & 0.0008 & 0.022 & 0.42 & 1.7 & 6.8 & 135.8 & 2122.4 \\ \hline
\multirow{3}{*}{LU} & grid size & \begin{tabular}[c]{@{}c@{}}12 x 12\\ x 12\end{tabular} & \begin{tabular}[c]{@{}c@{}}33 x 33\\ x 33\end{tabular} & \begin{tabular}[c]{@{}c@{}}64 x 64\\ x 64\end{tabular} & \begin{tabular}[c]{@{}c@{}}102 x 102\\ x 102\end{tabular} & \begin{tabular}[c]{@{}c@{}}162 x 162\\ x 162\end{tabular} & \begin{tabular}[c]{@{}c@{}}408 x 408\\ x 408\end{tabular} & \begin{tabular}[c]{@{}c@{}}1020 x 1020\\ x 1020\end{tabular} \\ \cline{2-9}
& no. of iterations & 50 & 300 & 250 & 250 & 250 & 300 & 300 \\ \cline{2-9}
& time step & 0.5 & 0.0015 & 2.0 & 2.0 & 2.0 & 1.0 & 0.5 \\ \hline
\multirow{3}{*}{SP} & grid size & \begin{tabular}[c]{@{}c@{}}12 x 12\\ x 12\end{tabular} & \begin{tabular}[c]{@{}c@{}}36 x 36\\ x 36\end{tabular} & \begin{tabular}[c]{@{}c@{}}64 x 64\\ x 64\end{tabular} & \begin{tabular}[c]{@{}c@{}}102 x 102\\ x 102\end{tabular} & \begin{tabular}[c]{@{}c@{}}162 x 162\\ x 162\end{tabular} & \begin{tabular}[c]{@{}c@{}}408 x 408\\ x 408\end{tabular} & \begin{tabular}[c]{@{}c@{}}1020 x 1020\\ x 1020\end{tabular} \\ \cline{2-9}
& no. of iterations & 100 & 400 & 400 & 400 & 400 & 500 & 500 \\ \cline{2-9}
& time step & 0.015 & 0.0015 & 0.0015 & 0.001 & 0.00067 & 0.0003 & 0.0001 \\ \hline
\multirow{5}{*}{UA} & no. of elements & 250 & 700 & 2400 & 8800 & 33500 & 515000 & \\ \cline{2-9}
& no. of mortar points & 11600 & 26700 & 92700 & 334600 & 1262100 & 19500000 & \\ \cline{2-9}
& levels of refinements & 4 & 5 & 6 & 7 & 8 & 10 & \\ \cline{2-9}
& no. of iterations & 50 & 100 & 200 & 200 & 200 & 250 & \\ \cline{2-9}
& heat source radius & 0.04 & 0.06 & 0.076 & 0.076 & 0.067 & 0.046 & \\ \hline
\multirow{2}{*}{DC} & input tuples & \[10^3\] & \[10^5\] & \[10^6\] & \[10^7\] & & & \\ \cline{2-9}
& no. of dimensions & 5 & 10 & 15 & 20 & & & \\ \hline
\end{tabular}
\caption{Problem sizes and parameters for each of the classes defined in NPB 3.3.}
\caption*{Source: Adapted from \cite{NPB}}
\label{problem}
\end{table}
\end{landscape}
答案1
除了修复双指数问题之外,您还应该认真考虑如何让您的表格更清晰、更吸引读者的眼球,主要是让它看起来更“开放”。为了实现这一目标,请考虑删除所有垂直线和大多数垂直线,并使用包的宏来booktabs
绘制剩余的几条线。此外,让您的标题行更具视觉结构——您的读者会喜欢的。
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{rotating,booktabs}
\usepackage[a4paper,margin=2.5cm]{geometry}
\frenchspacing
\begin{document}
\begin{sidewaystable}
\centering
\small
\begin{tabular}{@{} ll *{7}{c} @{}}
\toprule
\textbf{Benchmark} & \textbf{Parameter} & \multicolumn{7}{c@{}}{\textbf{Class}}\\
\cmidrule(l){3-9}
&&\textbf{S} & \textbf{W} & \textbf{A} & \textbf{B} & \textbf{C} & \textbf{D} & \textbf{E} \\
\midrule
CG & no. of rows & 1400 & 7000 & 14000 & 75000 & 150000 & 1500000 & 9000000 \\
& no. of nonzeros & 7 & 8 & 11 & 13 & 15 & 21 & 26 \\
& no. of iterations & 15 & 15 & 15 & 75 & 75 & 100 & 100 \\
& eigenvalue shift & 10 & 12 & 20 & 60 & 110 & 500 & 1500 \\ \addlinespace
EP & no. of random-number pairs & $2^{2^4}$ & $2^{2^5}$ & $2^{2^8}$ & $2^{3^0}$ & $2^{3^2}$ & $2^{3^6}$ & $2^{4^0}$ \\ \addlinespace
FT & grid size &
64$\times$64$\times$64 & 128$\times$128$\times$32 &
256$\times$256$\times$128 & 512$\times$256$\times$256 &
512$\times$512$\times$512 & 2048$\times$1024$\times$1024 &
4096$\times$2048$\times$2048 \\
& no. of iterations & 6 & 6 & 6 & 20 & 20 & 25 & 25 \\ \addlinespace
IS & no. of keys & $2^{1^6}$ & $2^{2^0}$ & $2^{2^3}$ & $2^{2^5}$ & $2^{2^7}$ & $2^{3^1}$ & \\
& key max. value & $2^{1^1}$ & $2^{1^6}$ & $2^{1^9}$ & $2^{2^1}$ & $2^{2^3}$ & $2^{2^7}$ & \\ \addlinespace
MG & grid size &
32$\times$32$\times$32 & 128$\times$128$\times$128 &
256$\times$256$\times$256 & 256$\times$256$\times$256 &
512$\times$512$\times$512 & 1024$\times$1024$\times$1024 &
2048$\times$2048$\times$2048 \\
& no. of iterations & 4 & 4 & 4 & 20 & 20 & 50 & 50 \\ \addlinespace
BT & grid size &
12$\times$12$\times$12 & 24$\times$24$\times$24 &
64$\times$64$\times$64 & 102$\times$102$\times$102 &
162$\times$162$\times$162 & 408$\times$408$\times$408 &
1020$\times$1020$\times$1020 \\
& no. of iterations & 60 & 200 & 200 & 200 & 200 & 250 & 250 \\
& time step & 0.01 & 0.0008 & 0.0008 & 0.0003 & 0.0001 & 0.00002 & 0.000004 \\ \addlinespace
(BT-IO) & write interval & 5 & 5 & 5 & 5 & 5 & 5 & 5 \\
& Gbytes written & 0.0008 & 0.022 & 0.42 & 1.7 & 6.8 & 135.8 & 2122.4 \\ \addlinespace
LU & grid size &
12$\times$12$\times$12 & 33$\times$33$\times$33 & 64$\times$64$\times$64 & 102$\times$102$\times$102 & 162$\times$162$\times$162 & 408$\times$408$\times$408 & 1020$\times$1020$\times$1020 \\
& no. of iterations & 50 & 300 & 250 & 250 & 250 & 300 & 300 \\
& time step & 0.5 & 0.0015 & 2.0 & 2.0 & 2.0 & 1.0 & 0.5 \\ \addlinespace
SP & grid size &
12$\times$12$\times$12 & 36$\times$36$\times$36 & 64$\times$64$\times$64 & 102$\times$102$\times$102 & 162$\times$162$\times$162 & 408$\times$408$\times$408 & 1020$\times$1020$\times$1020 \\
& no. of iterations & 100 & 400 & 400 & 400 & 400 & 500 & 500 \\
& time step & 0.015 & 0.0015 & 0.0015 & 0.001 & 0.00067 & 0.0003 & 0.0001 \\ \addlinespace
UA & no. of elements & 250 & 700 & 2400 & 8800 & 33500 & 515000 & \\
& no. of mortar points & 11600 & 26700 & 92700 & 334600 & 1262100 & 19500000 & \\
& levels of refinements & 4 & 5 & 6 & 7 & 8 & 10 & \\
& no. of iterations & 50 & 100 & 200 & 200 & 200 & 250 & \\
& heat source radius & 0.04 & 0.06 & 0.076 & 0.076 & 0.067 & 0.046 & \\ \addlinespace
DC & input tuples & $10^3$ & $10^5$ & $10^6$ & $10^7$ & & & \\
& no. of dimensions & 5 & 10 & 15 & 20 & & & \\
\bottomrule
\addlinespace
\multicolumn{7}{@{}l}{Source: Adapted from \cite{NPB}}\\
\end{tabular}
\caption{Problem sizes and parameters for each of the classes defined in NPB 3.3.}
\label{problem}
\end{sidewaystable}
\end{document}
答案2
这是一个可能的解决方案。您的双指数编码不正确:您不能这样写a^b^c
(反正是一种含糊不清的符号),而必须使用一对括号:a^{b^c}
。
\documentclass{article}
\usepackage{array, multirow, makecell, cellspace, caption}
\setlength\cellspacetoplimit{3pt}
\setlength\cellspacebottomlimit{1pt}
\usepackage{lscape}
\begin{document}
\begin{landscape}
\begin{table}%[!htb]
\footnotesize\renewcommand\cellset{\renewcommand\arraystretch{0.7}}
\begin{tabular}{|c|c|*{7}{>{$}Sc<{$}|}}
\\[-1cm]
\hline
\textbf{Benchmark} & \textbf{Parameter} & \textbf{Class S} & \textbf{Class W} & \textbf{Class A} & \textbf{Class B} & \textbf{Class C} & \textbf{Class D} & \textbf{Class E} \\ \hline
\multirow{4}{*}{CG} & no. of rows & 1400 & 7000 & 14000 & 75000 & 150000 & 1500000 & 9000000 \\ \cline{2-9}
& no. of nonzeros & 7 & 8 & 11 & 13 & 15 & 21 & 26 \\ \cline{2-9}
& no. of iterations & 15 & 15 & 15 & 75 & 75 & 100 & 100 \\ \cline{2-9}
& eigenvalue shift & 10 & 12 & 20 & 60 & 110 & 500 & 1500 \\ \hline
EP & \makecell{no. of random-number \\ pair} & 2^{2^4} & 2^{2^5} & 2^{2^8} & 2^{3^0} & 2^{3^2} & 2^{3^6} & 2^{4^0} \\ \hline
\multirow{2}{*}{FT} & grid size & \makecell{64 \times 64 \\ \times 64} & \makecell{128 \times 128 \\ \times 32} & \makecell{256 \times 256 \\ \times 128} & \makecell{512 \times 256\\ \times 256} & \makecell{512 \times 512\\ \times 512} & \makecell{2048 \times 1024\\ \times 1024} & \makecell{4096 \times 2048\\ \times 2048} \\ \cline{2-9}
& no. of iterations & 6 & 6 & 6 & 20 & 20 & 25 & 25 \\ \hline
\multirow{2}{*}{IS} & no. of keys & 2^{1^6} & 2^{2^0} & 2^{2^3} & 2^{2^5} & 2^{2^7} & 2^{3^1} & \\ \cline{2-9}
& key max. value & 2^{1^1} & 2^{1^6} & 2^{1^9} & 2^{2^1} & 2^{2^3} & 2^{2^7} & \\ \hline
\multirow{2}{*}{MG} & grid size & \makecell{32 \times 32\\ \times 32} & \makecell{128 \times 128\\ \times 128} & \makecell{256 \times 256\\ \times 256} & \makecell{256 \times 256\\ \times 256} & \makecell{512 \times 512\\ \times 512} & \makecell{1024 \times 1024\\ \times 1024} & \makecell{2048 \times 2048\\ \times 2048} \\ \cline{2-9}
& no. of iterations & 4 & 4 & 4 & 20 & 20 & 50 & 50 \\ \hline
\multirow{3}{*}{BT} & grid size & \makecell{12 \times 12\\ \times 12} & \makecell{24 \times 24\\ \times 24} & \makecell{64 \times 64\\ \times 64} & \makecell{102 \times 102\\ \times 102} & \makecell{162 \times 162\\ \times 162} & \makecell{408 \times 408\\ \times 408} & \makecell{1020 \times 1020\\ \times 1020} \\ \cline{2-9}
& no. of iterations & 60 & 200 & 200 & 200 & 200 & 250 & 250 \\ \cline{2-9}
& time step & 0.01 & 0.0008 & 0.0008 & 0.0003 & 0.0001 & 0.00002 & 0.000004 \\ \hline
\multirow{2}{*}{(BT-IO)} & write interval & 5 & 5 & 5 & 5 & 5 & 5 & 5 \\ \cline{2-9}
& Gbytes written & 0.0008 & 0.022 & 0.42 & 1.7 & 6.8 & 135.8 & 2122.4 \\ \hline
\multirow{3}{*}{LU} & grid size & \makecell{12 \times 12\\ \times 12} & \makecell{33 \times 33\\ \times 33} & \makecell{64 \times 64\\ \times 64} & \makecell{102 \times 102\\ \times 102} & \makecell{162 \times 162\\ \times 162} & \makecell{408 \times 408\\ \times 408} & \makecell{1020 \times 1020\\ \times 1020} \\ \cline{2-9}
& no. of iterations & 50 & 300 & 250 & 250 & 250 & 300 & 300 \\ \cline{2-9}
& time step & 0.5 & 0.0015 & 2.0 & 2.0 & 2.0 & 1.0 & 0.5 \\ \hline
\multirow{3}{*}{SP} & grid size & \makecell{12 \times 12\\ \times 12} & \makecell{36 \times 36\\ \times 36} & \makecell{64 \times 64\\ \times 64} & \makecell{102 \times 102\\ \times 102} & \makecell{162 \times 162\\ \times 162} & \makecell{408 \times 408\\ \times 408} & \makecell{1020 \times 1020\\ \times 1020} \\ \cline{2-9}
& no. of iterations & 100 & 400 & 400 & 400 & 400 & 500 & 500 \\ \cline{2-9}
& time step & 0.015 & 0.0015 & 0.0015 & 0.001 & 0.00067 & 0.0003 & 0.0001 \\ \hline
\multirow{5}{*}{UA} & no. of elements & 250 & 700 & 2400 & 8800 & 33500 & 515000 & \\ \cline{2-9}
& no. of mortar points & 11600 & 26700 & 92700 & 334600 & 1262100 & 19500000 & \\ \cline{2-9}
& levels of refinements & 4 & 5 & 6 & 7 & 8 & 10 & \\ \cline{2-9}
& no. of iterations & 50 & 100 & 200 & 200 & 200 & 250 & \\ \cline{2-9}
& heat source radius & 0.04 & 0.06 & 0.076 & 0.076 & 0.067 & 0.046 & \\ \hline
\multirow{2}{*}{DC} & input tuples & 10^3 & 10^5 & 10^6 & 10^7 & & & \\ \cline{2-9}
& no. of dimensions & 5 & 10 & 15 & 20 & & & \\ \hline
\noalign{\medskip}
\multicolumn{9}{@{}l}{Source: Adapted from \cite{NPB}}
\end{tabular}
\caption{Problem sizes and parameters for each of the classes defined in NPB 3.3.}
\label{problem}
\end{table}
\end{landscape}
\end{document}
答案3
上面的评论解释了指数书写语法错误(正确的是 $a^{b^c}$)导致的错误。因此,这个答案的主要贡献与主题无关:如何改进表格布局。
编辑:为此,做出以下变更:
- 用于在横向页面方向上跨越可用文本宽度的表格使用包
tabularx
- 用于格式化大数字和乘积的
siunitx
包。它们的选项是本地设置的,\sisetup{group-minimum-digits=4,tight-spacing}
其中第一个选项是组号,即使它们只有四位数字,第二个选项是数字和数学运算符之间的空格。 - 为了在单元格内容周围留出更多垂直空间,添加了包
cellspace
。由于使用了包,因此必须将siunitx
的celspace
列说明S
符更改为C
,并与tabularx
列类型一起使用,以保留序言中列类型X
的功能。X
\addparagraphcolumntypes{X}
- 为了给表格提供更多空间,文本区域的大小增加了,例如,使用包的默认值,边框缩小到 25 毫米
geometry
。 - 相反,我宁愿使用包中的
landscape
环境,因为我更熟悉它。sidewaystable
rotating
经过这样的改变,产品现在可以写在一行中,表格变成:
\documentclass{article}
\usepackage[margin=25mm]{geometry}% <-- added
\usepackage{rotating}
\usepackage{siunitx}% <-- added
\usepackage{multirow}% <-- added
\usepackage{cellspace, multirow, tabularx}%
\addparagraphcolumntypes{X}% <-- needs since cellspace otherwise redefine X column type
\begin{document}
\begin{sidewaystable}[!h]
\centering
\renewcommand\tabularxcolumn[1]{m{#1}}% X cells are vertical centered
\sisetup{group-minimum-digits=4,tight-spacing}% for formatting \num{...}
\setlength\tabcolsep{3pt}
\footnotesize
\setlength\cellspacetoplimit{4pt}% <-- added
\setlength\cellspacebottomlimit{4pt}% <-- added
\begin{tabularx}{\linewidth}{|c|>{\raggedright}C{X}|*{7}{>{$}c<{$}|}}
\hline
\textbf{Benchmark}
& \textbf{Parameter}
& \textbf{Class S} & \textbf{Class W} & \textbf{Class A}
& \textbf{Class B} & \textbf{Class C} & \textbf{Class D} & \textbf{Class E} \\
\hline
\multirow{4}{*}{CG}
& no. of rows
& \num{1400} & \num{7000} & \num{14000}
& \num{75000} & \num{150000} & \num{1500000} & \num{9000000} \\
\cline{2-9}
& no. of nonzeros
& 7 & 8 & 11 & 13 & 15 & 21 & 26 \\
\cline{2-9}
& no. of iterations
& 15 & 15 & 15 & 75 & 75 & 100 & 100 \\
\cline{2-9}
& eigenvalue shift
& 10 & 12 & 20 & 60 & 110 & 500 & 1500 \\
\hline
EP & no. of random-number pairs
& 2^{2^4} & 2^{2^5} & 2^{2^8} & 2^{3^0}
& 2^{3^2} & 2^{3^6} & 2^{4^0} \\
\hline
\multirow{2}{*}{FT}
& grid size
& \num{64 x 64 x 64} & \num{128 x 128 x 32} & \num{256 x 256 x 128}
& \num{512 x 256 x 256} & \num{512 x 512 x 512} & \num{2048 x 1024 x 1024}
& \num{4096 x 2048 x 2048} \\
\cline{2-9}
& no. of iterations
& 6 & 6 & 6 & 20 & 20 & 25 & 25 \\
\hline
\multirow{2}{*}{IS}
& no. of keys
& 2^{1^6} & 2^{2^0} & 2^{2^3} & 2^{2^5} & 2^{2^7} & 2^{3^1} & \\
\cline{2-9}
& key max. value
& 2^{1^1} & 2^{1^6} & 2^{1^9} & 2^{2^1} & 2^{2^3} & 2^{2^7} & \\
\hline
\multirow{2}{*}{MG}
& grid size & \num{32 x 32 x 32} & \num{128 x 128 x 128} & \num{256 x 256 x 256}
& \num{256 x 256 x 256} & \num{512 x 512 x 512} & \num{1024 x 1024 x 1024}
& \num{2048 x 2048 x 2048} \\
\cline{2-9}
& no. of iterations
& 4 & 4 & 4 & 20 & 20 & 50 & 50 \\
\hline
\multirow{3}{*}{BT}
& grid size
& \num{12 x 12 x 12} & \num{24 x 24 x 24} & \num{64 x 64 x 64}
& \num{102 x 102 x 102} & \num{162 x 162 x 162} & \num{408 x 408 x 408}
& \num{1020 x 1020 1020} \\
\cline{2-9}
& no. of iterations
& 60 & 200 & 200 & 200 & 200 & 250 & 250 \\
\cline{2-9}
& time step
& 0.01 & 0.0008 & 0.0008
& 0.0003 & 0.0001 & 0.00002 & 0.000004 \\
\hline
\multirow{2}{*}{(BT-IO)}
& write interval
& 5 & 5 & 5 & 5 & 5 & 5 & 5 \\
\cline{2-9}
& Gbytes written
& 0.0008 & 0.022 & 0.42 & 1.7 & 6.8 & 135.8 & 2122.4 \\
\hline
\multirow{3}{*}{LU}
& grid size
& \num{12 x 12 x 12} & \num{33 x 33 x 33} & \num{64 x 64 x 64}
& \num{102 x 102 x 102} & \num{162 x 162 x 162} & \num{408 x 408 x 408}
& \num{1020 x 1020 x 1020} \\
\cline{2-9}
& no. of iterations
& 50 & 300 & 250 & 250 & 250 & 300 & 300 \\
\cline{2-9}
& time step
& 0.5 & 0.0015 & 2.0 & 2.0 & 2.0 & 1.0 & 0.5 \\
\hline
\multirow{3}{*}{SP}
& grid size
& \num{12 x 12 x 12} & \num{36 x 36 x 36} & \num{64 x 64 x 64}
& \num{102 x 102 x 102} & \num{162 x 162 x 162} & \num{408 x 408 x 408}
& \num{1020 x 1020 x 1020} \\
\cline{2-9}
& no. of iterations
& 100 & 400 & 400 & 400 & 400 & 500 & 500 \\
\cline{2-9}
& time step
& 0.015 & 0.0015 & 0.0015 & 0.001 & 0.00067
& 0.0003 & 0.0001 \\
\hline
\multirow{8}{*}{UA}
& no. of elements
& 250 & 700 & \num{2400} & \num{8800}
& \num{33500} & \num{515000} & \\
\cline{2-9}
& no. of mortar points
& \num{11600} & \num{26700} & \num{92700} & \num{334600}
& \num{1262100} & \num{19500000} & \\
\cline{2-9}
& levels of refinements
& 4 & 5 & 6 & 7 & 8 & 10 & \\
\cline{2-9}
& no. of iterations
& 50 & 100 & 200 & 200 & 200 & 250 & \\
\cline{2-9}
& heat source radius
& 0.04 & 0.06 & 0.076 & 0.076 & 0.067 & 0.046 & \\
\hline
\multirow{2}{*}{DC}
& input tuples
& 10^3 & 10^5 & 10^6 & 10^7 & & & \\
\cline{2-9}
& no. of dimensions
& 5 & 10 & 15 & 20 & & & \\
\hline
\multicolumn{9}{Cl}{Source: Adapted from \cite{NPB}}
\end{tabularx}
\caption{Problem sizes and parameters for each of the classes defined in NPB 3.3.}
\label{problem}
\end{sidewaystable}
\end{document}
编辑(2):如果您增加文本区域并选择边距为 25 毫米并移动\cpation*{...}
到表格,那么您可以将使用的字体大小增加到 `\small,类似于 Mico 答案,即使在这种表格设计中。