Replies: 1 comment 2 replies
-
You can access the np.array inside Py5Vector with the data property (ie
I never totally understood what ufuncs were but just went through the documentation you linked. It seems Not sure what you are suggesting here. Are you suggesting that Py5Vector methods be instances of ufuncs? I'm open to making changes here, especially ones that promote tighter integration with numpy. |
Beta Was this translation helpful? Give feedback.
-
My friend @melissawm was helping me with the particle simulations and we wondered about how to broadcast operations could be done with the Py5Vector components.
Would it be possible to add ufuncs to Py5Vector operations?
https://numpy.org/doc/stable/reference/ufuncs.html
Beta Was this translation helpful? Give feedback.
All reactions