I have the following matrices
import numpy as np
c = np.array([
[0.2, -1],
[-1, 2.1]
])
d = np.array([
[0.9],
[0.1]
])
Its my understanding that the following calculation is applied when calling np.dot(d.T, c)
However, I am getting the following output:
dc = np.dot(d.T, c)
>> [[ 0.08 -0.69]]
What am I doing wrong? How should my matrices look like to use np.dot()
as intended?
I don’t want to use np.sum(c * d, axis=1)