math-optim/report/table.tmpl

30 lines
929 B
Go HTML Template
Raw Normal View History

2022-07-13 00:15:40 +02:00
% 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]
2022-12-24 11:30:22 +01:00
% \begin{tabular}[t]{ |l|{{- range $i, $v := .ColLayout }}{{$v}}| {{- end}} }
2022-07-18 01:05:17 +02:00
\resizebox{\columnwidth}{!}{\begin{tabular}[t]{r||{{- range $i, $v := .ColLayout }}{{$v}}| {{- end -}} }
\textbf{params} & {{ range $i, $v := .ColNames }}{{ printf "\\textbf{%s}" $v }} & {{ end}}\\
{{- range $j, $v := .Rs }}
{{ printf "%s & " $v.Title }}
{{- range $k, $val := $v.Values }}
{{- printf "%f & " $val }}
{{- end}}\\
{{- end }}
\end{tabular}}
2022-07-13 00:15:40 +02:00
2022-07-18 01:05:17 +02:00
\footnotesize
\centering
\caption{ {{- .Algo }} algo statistics}
2022-07-13 00:15:40 +02:00
\end{table}
% vim: ft=gotexttmpl ts=2 sts=2 sw=2 bs=2 expandtab