Reputation: 1266
Is there a general way of measuring how many floating-point operations a sequence of Numpy commands involves?—commands such as np.random.randint
, np.sum
, np.argmin
, np.matmul
or @
, etc.
Or is the only way to do it manually, thinking from a pure mathematical standpoint and/or looking at how Numpy implements the functions, as follows:
_wrapfunc
is supposed to work or what C code is relevant here.Upvotes: 3
Views: 1990