Hey Saif! I have the same question. Both A and Y have the same dimensions. So, why should I transpose it and calculate?
The following code runs properly using the np.dot() function:
import numpy as np
A = np.array([[1., 2]])
B = np.array([1., -2.])
print(np.dot(A,B))
It outputs -3 which is the correct output.
Apologies for reviving the topic, but I have the same question, so I thought your understanding on this problem can help me better.
Thank you!!