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 arrayto be formattedcompact_print – If
True, return a shorter version of string representation.
- Returns:
The string representation.