Go to the source code of this file.
◆ printBenchStyle()
void printBenchStyle |
( |
std::ofstream & |
out | ) |
|
14 out <<
"<xsl:stylesheet id='stylesheet' version='1.0' \
15 xmlns:xsl='http://www.w3.org/1999/XSL/Transform' >\n \
16 <xsl:template match='xsl:stylesheet' />\n \
17 <xsl:template match='/'> <!-- Root of the document -->\n \
20 <style type='text/css'> \n \
21 td { white-space: nowrap;}\n \
25 out <<
"<table border='1' width='100%' height='100%'>\n \
26 <TR> <!-- Write the table header -->\n \
27 <TH>Matrix</TH> <TH>N</TH> <TH> NNZ</TH> <TH> Sym</TH> <TH> SPD</TH> <TH> </TH>\n \
28 <xsl:for-each select='BENCH/AVAILSOLVER/SOLVER'>\n \
29 <xsl:sort select='@ID' data-type='number'/>\n \
31 <xsl:value-of select='TYPE' />\n \
32 <xsl:text></xsl:text>\n \
33 <xsl:value-of select='PACKAGE' />\n \
34 <xsl:text></xsl:text>\n \
39 out <<
" <xsl:for-each select='BENCH/LINEARSYSTEM'>\n \
40 <TR> <!-- print statistics for one linear system-->\n \
41 <TH rowspan='4'> <xsl:value-of select='MATRIX/NAME' /> </TH>\n \
42 <TD rowspan='4'> <xsl:value-of select='MATRIX/SIZE' /> </TD>\n \
43 <TD rowspan='4'> <xsl:value-of select='MATRIX/ENTRIES' /> </TD>\n \
44 <TD rowspan='4'> <xsl:value-of select='MATRIX/SYMMETRY' /> </TD>\n \
45 <TD rowspan='4'> <xsl:value-of select='MATRIX/POSDEF' /> </TD>\n \
46 <TH> Compute Time </TH>\n \
47 <xsl:for-each select='SOLVER_STAT'>\n \
48 <xsl:sort select='@ID' data-type='number'/>\n \
49 <TD> <xsl:value-of select='TIME/COMPUTE' /> </TD>\n \
53 <TH> Solve Time </TH>\n \
54 <xsl:for-each select='SOLVER_STAT'>\n \
55 <xsl:sort select='@ID' data-type='number'/>\n \
56 <TD> <xsl:value-of select='TIME/SOLVE' /> </TD>\n \
60 <TH> Total Time </TH>\n \
61 <xsl:for-each select='SOLVER_STAT'>\n \
62 <xsl:sort select='@ID' data-type='number'/>\n \
64 <xsl:when test='@ID=../BEST_SOLVER/@ID'>\n \
65 <TD style='background-color:red'> <xsl:value-of select='TIME/TOTAL' /> </TD>\n \
68 <TD> <xsl:value-of select='TIME/TOTAL' /></TD>\n \
75 <xsl:for-each select='SOLVER_STAT'>\n \
76 <xsl:sort select='@ID' data-type='number'/>\n \
77 <TD> <xsl:value-of select='ERROR' />\n \
78 <xsl:if test='ITER'>\n \
79 <xsl:text>(</xsl:text>\n \
80 <xsl:value-of select='ITER' />\n \
81 <xsl:text>)</xsl:text>\n \
90 </xsl:stylesheet>\n\n";
std::ofstream out("Result.txt")
References out().
Referenced by printStatheader().