Skip to content

Commit d76405a

Browse files
committed
Expose argmax/argmin funcs
1 parent 8bdba69 commit d76405a

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

doc/reference/misc.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ This page documents the miscellaneous members of the ``blosc2`` module that do n
143143
arctan,
144144
arctan2,
145145
arctanh,
146+
argmax,
147+
argmin,
146148
asin,
147149
asinh,
148150
atan,

doc/reference/reduction_functions.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Reduction operations can be used with any of :ref:`NDArray <NDArray>`, :ref:`C2A
1818
var
1919
min
2020
max
21+
argmin
22+
argmax
2123

2224
.. autofunction:: all
2325
.. autofunction:: any
@@ -28,3 +30,5 @@ Reduction operations can be used with any of :ref:`NDArray <NDArray>`, :ref:`C2A
2830
.. autofunction:: var
2931
.. autofunction:: min
3032
.. autofunction:: max
33+
.. autofunction:: argmin
34+
.. autofunction:: argmax

src/blosc2/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,8 @@ def _raise(exc):
500500
arctan,
501501
arctan2,
502502
arctanh,
503+
argmax,
504+
argmin,
503505
array_from_ffi_ptr,
504506
asin,
505507
asinh,
@@ -644,6 +646,8 @@ def _raise(exc):
644646
"arctanh",
645647
"are_partitions_aligned",
646648
"are_partitions_behaved",
649+
"argmax",
650+
"argmin",
647651
"array_from_ffi_ptr",
648652
"asarray",
649653
"asin",

0 commit comments

Comments
 (0)