pymor.tools.pprint¶
Functions
Creates a formatted string representation of a |
- 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.
Defaults
compact_print (see
pymor.core.defaults)