In [8]:
A = np.array([[1, 2],
              [1, 2]])

print(np.linalg.det(A))
0.0
In [9]:
B = np.array([[1],[2]])
C = np.array([[3],[2]])

B_new = np.dot(A,B)
C_new = np.dot(A,C)
vectors = np.concatenate((B_new, C_new), axis=1)

origin = np.zeros(vectors.shape)

plt.figure(figsize=(6,6))
plt.quiver(*origin, *vectors, color=['r','g','b'], scale=1, units='xy')
plt.grid()
plt.xlim(-10,10)
plt.ylim(-10,10)
plt.gca().set_aspect('equal')
plt.show()
In [10]:
# If we try to execute this cell, it will produce the
# following error "LinAlgError: Singular matrix"

#A_inv = np.linalg.inv(A)