I’m getting an error on the Exercise 1 of C1_W4_Assignment.
It requires to find A_reflection_yaxis
, which corresponds to the reflection about y-axis
Per my understanding, we can find the reflection of a matrix by multiplying the matrix by [[-1,0],[0,1]]
In the current problem, the reflection on y-axis gives →
[[-2,-3], [2,1]]
to get the eigen vectors and the eigen values and eigen values:
we can use → np.linalg.eig(A_reflection_yaxis)
however, when we plot this i’m getting error -
TypeError: Cannot cast array data from dtype('complex128') to dtype('float64') according to the rule 'safe'
what needs to be done to fix this issue ?
tia!