I have a function where I need to perform np.exp(matrix1 @ matrix2), but I receive the error message: loop of ufunc does not support argument 0 of type float which has no callable exp method
matrix1is a 210 by 4 matrix offloatvaluesmatrix2is a 4 by 1 offloatvaluesmatrix1 @ matrix2is a 210 by 1 offloatvaluestype(matrix1 @ matrix)reportsnumpy.ndarray
numpy.exp() expects an array_like argument so I don't understand why this gags.
Error details:
newval = np.exp(matrix1 @ matrix2)
AttributeError Traceback (most recent call last)
AttributeError: 'float' object has no attribute 'exp'
The above exception was the direct cause of the following exception:
TypeError Traceback (most recent call last)
<ipython-input-563-7924faaa390b> in <module>
----> 1 np.exp(matrix1 @ matrix2)
TypeError: loop of ufunc does not support argument 0 of type float which has no callable exp method