matrix index table
A table containing the execution times and memory consumptions for different matrices, alorithms, and parameters.
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
% Full code on github: https://github.com/bvieuble/TeXFantasy
% Appears my the article ``Combining sparse approximate factorizations with mixed-precision iterative refinement''.
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
\newcolumntype{C}[1]{>{\PreserveBackslash\centering}p{#1}}
\newcolumntype{L}[1]{>{\PreserveBackslash\raggedright}p{#1}}
\newcolumntype{R}[1]{>{\PreserveBackslash\raggedleft}p{#1}}
\newcommand{\colwdtha}{0.06\linewidth}
\newcommand{\colwdthb}{0.05\linewidth}
\newcommand{\colwdthc}{0.05\linewidth}
\setlength{\tabcolsep}{6pt}
\pgfplotstabletypeset[col sep=comma,
string type,
font=\small,
every head row/.style={output empty row,before row={
\rowcolor{gray!10} & \multicolumn{1}{r |}{Solver} &
\multicolumn{1}{C{\colwdthb}}{\scriptsize LU} &
\multicolumn{1}{C{\colwdthb}}{\scriptsize LU} &
\multicolumn{1}{C{\colwdtha}}{\scriptsize GM} &
\multicolumn{1}{C{\colwdtha} |}{\scriptsize GM} &
\multicolumn{1}{C{\colwdthb}}{\scriptsize LU} &
\multicolumn{1}{C{\colwdthb}}{\scriptsize LU} &
\multicolumn{1}{C{\colwdtha}}{\scriptsize GM} &
\multicolumn{1}{C{\colwdtha} |}{\scriptsize GM} &
\multicolumn{1}{C{\colwdthb}}{\scriptsize LU} &
\multicolumn{1}{C{\colwdthb}}{\scriptsize LU} &
\multicolumn{1}{C{\colwdtha}}{\scriptsize GM} &
\multicolumn{1}{C{\colwdtha}}{\scriptsize GM} \\
\rowcolor{gray!10} & \multicolumn{1}{r |}{$u_f$} &
\multicolumn{1}{C{\colwdthb}}{\textsc{d}} &
\multicolumn{1}{C{\colwdthb}}{\textsc{s}} &
\multicolumn{1}{C{\colwdtha}}{\textsc{s}} &
\multicolumn{1}{C{\colwdtha} |}{\textsc{s}} &
\multicolumn{1}{C{\colwdthb}}{\textsc{d}} &
\multicolumn{1}{C{\colwdthb}}{\textsc{s}} &
\multicolumn{1}{C{\colwdtha}}{\textsc{s}} &
\multicolumn{1}{C{\colwdtha} |}{\textsc{s}} &
\multicolumn{1}{C{\colwdthb}}{\textsc{d}} &
\multicolumn{1}{C{\colwdthb}}{\textsc{s}} &
\multicolumn{1}{C{\colwdtha}}{\textsc{s}} &
\multicolumn{1}{C{\colwdtha}}{\textsc{s}} \\
\rowcolor{gray!10} & \multicolumn{1}{r |}{$u_p$=$u_g$} &
\multicolumn{1}{C{\colwdthb}}{\textemdash} &
\multicolumn{1}{C{\colwdthb}}{\textemdash} &
\multicolumn{1}{C{\colwdtha}}{\textsc{d}} &
\multicolumn{1}{C{\colwdtha} |}{\textsc{s}} &
\multicolumn{1}{C{\colwdthb}}{\textemdash} &
\multicolumn{1}{C{\colwdthb}}{\textemdash} &
\multicolumn{1}{C{\colwdtha}}{\textsc{d}} &
\multicolumn{1}{C{\colwdtha} |}{\textsc{s}} &
\multicolumn{1}{C{\colwdthb}}{\textemdash} &
\multicolumn{1}{C{\colwdthb}}{\textemdash} &
\multicolumn{1}{C{\colwdtha}}{\textsc{d}} &
\multicolumn{1}{C{\colwdtha}}{\textsc{s}} \\\toprule
\multicolumn{1}{c}{ID} &
\multicolumn{1}{c}{$\tau_b$} &
\multicolumn{4}{| c |}{Time (s)} &
\multicolumn{4}{c |}{Memory (GB)} &
\multicolumn{4}{c}{Nb LU solves}\\
}},
columns={name,th,ddd-t,sdd-t,sdddd-t,sddss-t,ddd-m,sdd-m,
sdddd-m,sddss-m,ddd-it,sdd-it,sdddd-it,
sddss-it},
columns/name/.style={
column name={},
column type={c},
assign cell content/.code={
\ifstrequal{##1}{}
{\pgfkeyssetvalue{/pgfplots/table/@cell content}
{}}
{\pgfkeyssetvalue{/pgfplots/table/@cell content}
{\midrule\multirow{3}{*}{\footnotesize
\rotatebox{90}{##1}}}}
},
},
columns/th/.style={column name={}, column type={c}},
columns/ddd-t/.style={column name=$\mathrm{A}_b$, column
type={| R{\colwdthb}},
},
columns/sdd-t/.style={column name=$\mathrm{B}_b$, column
type={R{\colwdthb}},
},
columns/sdddd-t/.style={column name=$\mathrm{C}_b$,
column type={R{\colwdtha}},
},
columns/sddss-t/.style={column name=$\mathrm{D}_b$,
column type={R{\colwdtha} |},
},
columns/ddd-m/.style={column name=$\mathrm{A}_b$, column
type={R{\colwdthb}},
},
columns/sdd-m/.style={column name=$\mathrm{B}_b$, column
type={R{\colwdthb}},
},
columns/sdddd-m/.style={column name=$\mathrm{C}_b$,
column type={R{\colwdtha}},
},
columns/sddss-m/.style={column name=$\mathrm{D}_b$,
column type={R{\colwdtha} |},
},
columns/ddd-it/.style={column name=$\mathrm{A}_b$, column
type={R{\colwdthb}},
},
columns/sdd-it/.style={column name=$\mathrm{B}_b$, column
type={R{\colwdthb}},
},
columns/sdddd-it/.style={column name=$\mathrm{C}_b$,
column type={R{\colwdtha}},
},
columns/sddss-it/.style={column name=$\mathrm{D}_b$,
column type={R{\colwdtha}},
},
postproc cell content/.code={
\ifodd\pgfplotstablerow\relax
\else
\ifnum\pgfplotstablecol>0
\pgfkeysalso{@cell
content={\cellcolor{gray!30}#1}}%
\fi
\fi
},
every last row/.style={after row=\bottomrule}
]{\data}