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
Their result is always a :ref:`LazyExpr` instance, which can be evaluated (with ``compute`` or ``__getitem__``) to get the actual values of the computation.
101
102
102
-
Note: The functions ``conj``, ``real``, ``imag``, ``contains``, ``where`` are not technically ufuncs.
103
+
Note: The functions ``real``, ``imag``, ``contains``, ``where`` are not technically ufuncs.
Contrarily to lazy functions, reduction functions are evaluated eagerly, and the result is always a NumPy array (although this can be converted internally into an :ref:`NDArray <NDArray>` if you pass any :func:`blosc2.empty` arguments in ``kwargs``).
211
+
212
+
Reduction operations can be used with any of :ref:`NDArray <NDArray>`, :ref:`C2Array <C2Array>`, :ref:`NDField <NDField>` and :ref:`LazyExpr <LazyExpr>`. Again, although these can be part of a :ref:`LazyExpr <LazyExpr>`, you must be aware that they are not lazy, but will be evaluated eagerly during the construction of a LazyExpr instance (this might change in the future). When the input is a :ref:`LazyExpr`, reductions accept ``fp_accuracy`` to control floating-point accuracy, and it is forwarded to :func:`LazyExpr.compute`.
213
+
214
+
.. currentmodule:: blosc2
215
+
216
+
.. autosummary::
217
+
218
+
"""
219
+
)
220
+
genbody(f, sorted(reducers))
221
+
222
+
withopen("reference/ndarray.rst", "w") asf:
223
+
f.write(
224
+
""".. _NDArray:
225
+
226
+
NDArray
227
+
=======
228
+
229
+
The multidimensional data array class. Instances may be constructed using the constructor functions in the list below `NDArrayConstructors`_.
230
+
In addition, all the functions from the :ref:`Lazy Functions <lazy_functions>` section can be used with NDArray instances.
Copy file name to clipboardExpand all lines: doc/reference/ufuncs.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ The following elementwise functions can be used for computing with any of :ref:`
5
5
6
6
Their result is always a :ref:`LazyExpr` instance, which can be evaluated (with ``compute`` or ``__getitem__``) to get the actual values of the computation.
7
7
8
-
Note: The functions ``conj``, ``real``, ``imag``, ``contains``, ``where`` are not technically ufuncs.
8
+
Note: The functions ``real``, ``imag``, ``contains``, ``where`` are not technically ufuncs.
0 commit comments