math-optim/report/table.tmpl
surtur 96a93788da
All checks were successful
continuous-integration/drone/push Build is passing
go(report): add table.go, table.tmpl
2022-07-13 00:15:40 +02:00

32 lines
912 B
Go HTML Template

% Code generated by math-optim; DO NOT EDIT.
%
% This file was generated by robots at
% {{ .Timestamp }}
% source: git.dotya.ml/wanderer/math-optim/report/table.tmpl
% This file is a part of the math-optim project.
% project homepage: https://git.dotya.ml/wanderer/math-optim/
\subsection{ {{- .Algo -}} }
\begin{table}[!htb]
\centering
% \begin{tabular}[t]{ |l|{{- range $i, $v := .ColLayout }}{{$v}}| {{- end}} }
\begin{tabular}[t]{ ||l||{{- range $i, $v := .ColLayout }}{{$v}}| {{- end -}}| }
\toprule
& {{ range $i, $v := .ColNames }}{{$v }} & {{ end}}\\
{{- range $j, $v := .Rs }}
{{ printf "%s & " $v.Title }}
{{- range $k, $val := $v.Values }}
{{- printf "%f & " $val }}
{{- end}}\\
{{- end }}
\bottomrule
\end{tabular}
\caption{\label{table: {{ .Algo }} algo statistics}}
\end{table}
% vim: ft=gotexttmpl ts=2 sts=2 sw=2 bs=2 expandtab