I have the code below in Python3:
matrix = np.array([[1,2,3],
[2,3,4],
[5,3,4]])
sig_d1 = np.array([[1, 0, 0],
[0, 0, -1],
[0, -1, 0]])
sig_d2 = np.array([[1, 0, 0],
[0, 0, 1],
[0, 1, 0]])
for i in range(1,3):
product=np.dot(sig_d+i,matrix)
However, I'm getting the error:
product = np.dot(sig_d+i,matrix.transpose())
NameError: name 'sig_d' is not defined
Could someone give some support?