bencher.results.laxtex_result

Functions

latex_text(→ str)

Convert text to LaTeX text format, replacing underscores with spaces.

format_values_list(→ list[Any])

Format a list of values, showing ellipsis if too long.

latex_value(→ str)

Format a single value for LaTeX, wrapping strings that contain spaces in text{}.

create_matrix_array(→ str)

Create a LaTeX matrix array from values.

input_var_to_latex(→ str)

Convert input variable to LaTeX format.

result_var_to_latex(→ str)

Convert result variables to LaTeX format.

to_latex(→ panel.pane.LaTeX | None)

Convert benchmark configuration to LaTeX visualization.

Module Contents

bencher.results.laxtex_result.latex_text(text: str) str

Convert text to LaTeX text format, replacing underscores with spaces.

bencher.results.laxtex_result.format_values_list(values: list[Any], max_display: int = 5) list[Any]

Format a list of values, showing ellipsis if too long.

bencher.results.laxtex_result.latex_value(val: Any) str

Format a single value for LaTeX, wrapping strings that contain spaces in text{}.

bencher.results.laxtex_result.create_matrix_array(values: list[Any]) str

Create a LaTeX matrix array from values.

bencher.results.laxtex_result.input_var_to_latex(input_var) str

Convert input variable to LaTeX format.

bencher.results.laxtex_result.result_var_to_latex(bench_cfg) str

Convert result variables to LaTeX format.

bencher.results.laxtex_result.to_latex(bench_cfg) panel.pane.LaTeX | None

Convert benchmark configuration to LaTeX visualization.

Returns None if there are no variables to display.