pygsti.tools.matrixtools.print_mx#
- print_mx(mx, width=9, prec=4, withbrackets=False)#
Print matrix in pretty format.
Will print real or complex matrices with a desired precision and “cell” width.
- Parameters:
mx (numpy array) – the matrix (2-D array) to print.
width (int, optional) – the width (in characters) of each printed element
prec (int optional) – the precision (in characters) of each printed element
withbrackets (bool, optional) – whether to print brackets and commas to make the result something that Python can read back in.
- Return type:
None