bencher.results.laxtex_result

Attributes

MAX_DISPLAY_VALUES

Functions

latex_text(text) → str

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

format_values_list(values[, max_display]) → list[Any]

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

latex_value(val) → str

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

create_matrix_array(values) → str

Create a LaTeX matrix array from values.

input_var_to_latex(input_var) → str

Convert input variable to LaTeX format.

result_var_to_latex(bench_cfg) → str

Convert result variables to LaTeX format.

to_latex(bench_cfg) → bencher.optional_deps.pn.pane.LaTeX | None

Convert benchmark configuration to LaTeX visualization.

Module Contents

bencher.results.laxtex_result.MAX_DISPLAY_VALUES = 5
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 = MAX_DISPLAY_VALUES) → 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: bencher.variables.sweep_base.SweepBase) → str

Convert input variable to LaTeX format.

bencher.results.laxtex_result.result_var_to_latex(bench_cfg: bencher.bench_cfg.BenchCfg) → str

Convert result variables to LaTeX format.

bencher.results.laxtex_result.to_latex(bench_cfg: bencher.bench_cfg.BenchCfg) → bencher.optional_deps.pn.pane.LaTeX | None

Convert benchmark configuration to LaTeX visualization.

Returns None if there are no variables to display.