Skip to main content

set_print_options

Function set_print_options 

Source
pub fn set_print_options(
    precision: usize,
    threshold: usize,
    linewidth: usize,
    edgeitems: usize,
)
Expand description

Configure how arrays are printed.

Matches NumPy’s set_printoptions:

  • precision: number of decimal places for floats (default 8)
  • threshold: total element count above which truncation kicks in (default 1000)
  • linewidth: max characters per line (default 75)
  • edgeitems: number of items shown at each edge when truncated (default 3)