forked from numpy/numpy
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ndarray.max() and .min() can now work on arrays of type 'S' and 'U' a…
…s suggested in issue numpy#1914 . I've added function _String_Min_Or_Max to methods.c and updated functions array_min and array_max to handle string ndarrays. One can launch this functions with arguments - keepdims, out and axis (which can be a tuple to enable multidimensional reductions). The solution is based on PyArray_ArgMin and PyArray_Argmax functs, as suggested in issue. I've also created class TestMax in core/tests/test_multidimensional.py in which several tests are placed.
- Loading branch information
1 parent
2b60f5b
commit cd7ac9f
Showing
2 changed files
with
456 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.