pymor.tools.pprint
¶
Module Contents¶
- 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.