pymor.tools.pprint

Functions

format_array

Creates a formatted string representation of a NumPy array.

pymor.tools.pprint.format_array(array, compact_print=False)[source]

Creates a formatted string representation of a NumPy array.

Parameters:
  • array – the NumPy array to be formatted

  • compact_print – If True, return a shorter version of string representation.

Returns:

The string representation.

Defaults

compact_print (see pymor.core.defaults)