You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the Numpy doc we could try to add __ufunc_array__ methods to our data classes to automatically allow numpy ufuncs like np.real, np.abs and so on to work with Syncopy data objects. For basic operations where one operation is applied to every element of a dataset, this could be worthwhile exploring.
Eventually this could turn out to be really powerful, as basically Syncopy data objects which implement __ufunc_array__ then would act like the np.ndarray class, also for arithmetics and so on.
The text was updated successfully, but these errors were encountered:
tensionhead
added
the
Explore
Examine novel functionality/proposed changes etc. Does not necessarily involve coding things.
label
Nov 11, 2022
According to the Numpy doc we could try to add
__ufunc_array__
methods to our data classes to automatically allow numpy ufuncs likenp.real
,np.abs
and so on to work with Syncopy data objects. For basic operations where one operation is applied to every element of a dataset, this could be worthwhile exploring.Eventually this could turn out to be really powerful, as basically Syncopy data objects which implement
__ufunc_array__
then would act like thenp.ndarray
class, also for arithmetics and so on.The text was updated successfully, but these errors were encountered: