- pecans.utilities.io_utils.pretty_print_matrix(A, name='A')[source]¶
Prints a numpy matrix to the terminal in a human-readable way (provided it isn’t too large)
- Parameters:
A (
numpy.ndarray) – The matrix to printname (str) – a name to print before the matrix, default is “A”, e.g. would print “A = …”, useful to distinguish multiple matrices from each other.
- Returns:
none