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
Copy file name to clipboardExpand all lines: ADD_LAZYFUNCS.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,8 @@ Once you have written a (public API) function in Blosc2, it is important to:
5
5
* Add it to the list of functions in ``__all__`` in the ``__init__.py`` file
6
6
* If it is present in numpy, add it to the relevant dictionary (``local_ufunc_map``, ``ufunc_map````ufunc_map_1param``) in ``ndarray.py``
7
7
8
+
If your function is implemented at the Blosc2 level (and not via either the `LazyUDF` or `LazyExpr` classes), you will need to add some conversion of the inputs to SimpleProxy instances (see e.g. ``matmul`` for an example).
9
+
8
10
Finally, you also need to deal with it correctly within ``shape_utils.py``.
9
11
10
12
If the function does not change the shape of the output, simply add it to ``elementwise_funcs`` and you're done.
0 commit comments