plot

A plot representing the convergence of mixed precision restarted GMRES for different set of precisions and matrices.

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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
%%% Full, compilable sources including data files are on Github: 
%%% https://github.com/bvieuble/TeXFantasy/tree/main/plots/fig2
%%% Appears in my thesis ``Mixed precision iterative refinement for the 
%%% solution of large sparse linear systems''.

% Compiled with XeLaTeX
% TeX-command-extra-options: "-shell-escape"
\documentclass[convert={outext=.png},border=10pt]{standalone}
\usepackage{tikz}
\usepackage{pgfplots, pgfplotstable}
\pgfplotsset{compat=newest}

\input{color_theme.tex}

\pgfplotstableread[col sep=comma]{data/1138_bus.csv}{\dataa}
\pgfplotstableread[col sep=comma]{data/bcsstk19.csv}{\datab}
\pgfplotstableread[col sep=comma]{data/Vehicle_10NN.csv}{\datac}
\pgfplotstableread[col sep=comma]{data/pores_3.csv}{\datad}

\begin{document}

\begin{tikzpicture} 
    \begin{axis}
    [
        legend style={at={(.9,.85)}, font=\normalsize},
        axis x line=left,
        axis y line=middle,
        grid = major,
        grid style={dashed, gray!30},
        width=1.\linewidth,
        height=0.375\linewidth,
        xmin= 0,
        xtick={0, 20, 40, 60, 80, 100, 120},
        xticklabels={0, 20, 40, 60, 80, 100, 120},
        x tick label style={font=\normalsize},
        ymin= 1e-17,
        ymax= 5e1,
        ymode=log,
        y tick label style={rotate=0,font=\normalsize},
        ytick={1e0, 1e-8, 1e-16},
        yticklabels={1e0, 1e8, 1e16},
        y tick label style={font=\normalsize},
        y label style={at={(axis description cs:-0.1,0.5)},rotate=90,
                           anchor=south},
        ylabel=Forward error,
        title style={yshift=-.2cm},
        title={1138\_bus ($1138\times 1138$) - ILUT($10^{-6}$)},
        at={(0, 0)}
    ]

        \addplot[mark=none,color=myblue,thick]
            table[x=it,y=ddqsdd] 
            {\dataa};

        \addplot[mark=x,only marks,mark size=4pt,thick,color=myblue,forget 
                 plot, thick]
            table[x=it,y=ddqsdd-rstrt] 
            {\dataa};

        \addplot[mark=none,color=myred,thick]
            table[x=it,y=ddqssd] 
            {\dataa};

        \addplot[mark=x,only marks,mark size=4pt,thick,color=myred,forget plot,
                 thick]
            table[x=it,y=ddqssd-rstrt] 
            {\dataa};

        \addplot[mark=none,color=mygreen,thick]
            table[x=it,y=ddqsss] 
            {\dataa};

        \addplot[mark=x,only marks,mark size=4pt,thick,color=mygreen,forget 
                 plot,thick]
            table[x=it,y=ddqsss-rstrt] 
            {\dataa};

        \legend{\textsc{sdd}, \textsc{ssd}, \textsc{sss}}
    \end{axis}

    \begin{axis}
    [
        legend style={at={(.9,.85)}, font=\normalsize},
        axis x line=left,
        axis y line=middle,
        grid = major,
        grid style={dashed, gray!30},
        width=1.\linewidth,
        height=0.375\linewidth,
        xmin= 0,
        xtick={0, 5, 10, 15, 20, 25, 30, 35, 40, 45},
        xticklabels={0, 5, 10, 15, 20, 25, 30, 35, 40, 45},
        x tick label style={font=\normalsize},
        ymin= 1e-17,
        ymax= 5e1,
        ymode=log,
        y tick label style={rotate=0,font=\normalsize},
        ytick={1e0, 1e-8, 1e-16},
        yticklabels={1e0, 1e8, 1e16},
        y tick label style={font=\normalsize},
        y label style={at={(axis description cs:-0.1,0.5)},rotate=90,
                       anchor=south},
        ylabel=Forward error,
        title style={yshift=-.2cm},
        title={bcsstk19 ($817\times 817$) - LU},
        at={(0, -70)}
    ]

        \addplot[mark=none,color=myblue,thick]
            table[x=it,y=ddqsdd] 
            {\datab};

        \addplot[mark=x,only marks,mark size=4pt,thick,color=myblue,forget 
                 plot,thick]
            table[x=it,y=ddqsdd-rstrt] 
            {\datab};

        \addplot[mark=none,color=myred,thick]
            table[x=it,y=ddqssd] 
            {\datab};

        \addplot[mark=x,only marks,mark size=4pt,thick,color=myred,forget plot,
                 thick]
            table[x=it,y=ddqssd-rstrt] 
            {\datab};

        \addplot[mark=none,color=mygreen,thick]
            table[x=it,y=ddqsss] 
            {\datab};

        \addplot[mark=x,only marks,mark size=4pt,thick,color=mygreen,forget 
                 plot,thick]
            table[x=it,y=ddqsss-rstrt] 
            {\datab};

        \legend{\textsc{sdd}, \textsc{ssd}, \textsc{sss}}
    \end{axis}

    \begin{axis}
    [
        legend style={at={(.9,.85)}, font=\normalsize},
        axis x line=left,
        axis y line=middle,
        grid = major,
        grid style={dashed, gray!30},
        width=1.\linewidth,
        height=0.375\linewidth,
        xmin= 0,
        xtick={0,2,4,6,8,10,12,14,16,18,20},
        xticklabels={0,2,4,6,8,10,12,14,16,18,20},
        x tick label style={font=\normalsize},
        ymin= 1e-17,
        ymax= 5e1,
        ymode=log,
        y tick label style={rotate=0,font=\normalsize},
        ytick={1e0, 1e-8, 1e-16},
        yticklabels={1e0, 1e8, 1e16},
        y tick label style={font=\normalsize},
        y label style={at={(axis description cs:-0.1,0.5)},rotate=90,
                       anchor=south},
        ylabel=Forward error,
        title style={yshift=-.2cm},
        title={pores\_3 ($532\times 532$) - ILUT($10^{-6}$)},
        at={(0, -140)}
    ]

        \addplot[mark=none,color=myblue,thick]
            table[x=it,y=ddqhss] 
            {\datac};

        \addplot[mark=x,only marks,mark size=4pt,thick,color=myblue,forget 
                 plot,thick]
            table[x=it,y=ddqhss-rstrt] 
            {\datac};

        \addplot[mark=none,color=myred,thick]
            table[x=it,y=ddqhhs] 
            {\datac};

        \addplot[mark=x,only marks,mark size=4pt,thick,color=myred,forget plot,
                 thick]
            table[x=it,y=ddqhhs-rstrt] 
            {\datac};

        \addplot[mark=none,color=mygreen,thick]
            table[x=it,y=ddqhhh] 
            {\datac};

        \addplot[mark=x,only marks,mark size=4pt,thick,color=mygreen,forget 
                 plot,thick]
            table[x=it,y=ddqhhh-rstrt] 
            {\datac};

        \legend{\textsc{hss}, \textsc{hhs}, \textsc{hhh}}
    \end{axis}

    \begin{axis}
    [
        legend style={at={(.9,.85)}, font=\normalsize},
        axis x line=left,
        axis y line=middle,
        grid = major,
        grid style={dashed, gray!30},
        width=1.\linewidth,
        height=0.375\linewidth,
        xmin= 0,
        xtick={0,10,20,30,40,50,60,70,80},
        xticklabels={0,10,20,30,40,50,60,70,80},
        xlabel=\#it,
        x tick label style={font=\normalsize},
        ymin= 1e-17,
        ymax= 5e1,
        ymode=log,
        y tick label style={rotate=0,font=\normalsize},
        ytick={1e0, 1e-8, 1e-16},
        yticklabels={1e0, 1e8, 1e16},
        y tick label style={font=\normalsize},
        y label style={at={(axis description cs:-0.1,0.5)},rotate=90,
                       anchor=south},
        ylabel=Forward error,
        title style={yshift=-.2cm},
        title={pores\_3 ($532\times 532$) - ILUT($10^{-6}$)},
        at={(0, -210)}
    ]

        \addplot[mark=none,color=myblue,thick]
            table[x=it,y=ddqhss] 
            {\datad};

        \addplot[mark=x,only marks,mark size=4pt,thick,color=myblue,forget 
                 plot,thick]
            table[x=it,y=ddqhss-rstrt] 
            {\datad};

        \addplot[mark=none,color=myred,thick]
            table[x=it,y=ddqhhs] 
            {\datad};

        \addplot[mark=x,only marks,mark size=4pt,thick,color=myred,forget plot,
                 thick]
            table[x=it,y=ddqhhs-rstrt] 
            {\datad};

        \addplot[mark=none,color=mygreen,thick]
            table[x=it,y=ddqhhh] 
            {\datad};

        \addplot[mark=x,only marks,mark size=4pt,thick,color=mygreen,forget 
                 plot,thick]
            table[x=it,y=ddqhhh-rstrt] 
            {\datad};

        \legend{\textsc{hss}, \textsc{hhs}, \textsc{hhh}}
    \end{axis}
\end{tikzpicture}

\end{document}