Get Index Of Element In Numpy Array Multiplication Definition