I need to do simple calculation on matricies and vector using np.array and np.matrix. My problem is that I do not know what is the difference between np.array and np.matrix. Calculation do I need to do is (among others):
A - matrix
B - matrix
x - vector
1. A * x
2. A * B
3. (A * A^T)^-1
Once, I need to do in using np.array and again using np.matrix. I have tried many ways like:
Ax = A.dot(x) # multiplication by vector
AB = np.dot(A, B) # multiplication by matrix
ab = np.matmul(A, B) # multiplication by matrix
At = A.transpose()
At = np.transpose(A)
inv = np.linalg.inv(a) # and inverse matrix, but I do not know which is np. matrix or np.array.
Kindly help.