math-optim/report/table.tmpl
leo 7a5de808e9
All checks were successful
continuous-integration/drone/push Build is passing
report: correct the path to tmpl files in comments
this path gets redirected to a canonical - even if nonpermanent - one at
`{repo}/src/branch/{main-branch}/{path-to-file}`, that is
`{repo}/src/branch/development/{path-to-file}` in concrete terms.
the previous paths were resulting in 404s.
2023-02-24 16:25:31 +01:00

30 lines
933 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/src/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]
% \begin{tabular}[t]{ |l|{{- range $i, $v := .ColLayout }}{{$v}}| {{- end}} }
\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}}
\footnotesize
\centering
\caption{ {{- .Algo }} algo statistics}
\end{table}
% vim: ft=gotexttmpl ts=2 sts=2 sw=2 bs=2 expandtab