A = np.array([[12, 5, 2], [20, 4, 8], [2, 4, 3], [7, 1, 10]])
print(bmatrix(A) + '\n')
B = np.array([[1.2], [3.7], [0.2]])
print(bmatrix(B) + '\n')
C = np.array([1.2, 9.3, 0.6, -2.1])
print(bmatrix(C) + '\n')
Numpy 2d and 1d array to latex bmatrix