from IPython.display import display, Math
def print_matrix(array):
data = ''
for line in array:
if len(line) == 1:
data += ' %.3f &'%line + r' \\\n'
continue
for element in line:
data += ' %.3f &'%element
data += r' \\' + '\n'
display(Math('\\begin{bmatrix} \n%s\end{bmatrix}'%data))
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)