Is there a difference between numpy.square and using the ** operator on a Numpy array?
From what I can see it yields the same result.
Any differences in the efficiency of execution?
An example for clarification:
In [1]: import numpy as np
In [2]: A = np.array([[2, 2],[2, 2]])
In [3]: np.square(A)
Out[3]: array([[4, 4], [4, 4]])
In [4]: A ** 2
Out[4]: array([[4, 4], [4, 4]])