Search
Search Results
Search finished, found 16 page(s) matching the search query.
- numpy.count_nonzero
...mPy reference Routines and objects by topic Sorting, searching, and counting numpy.count_nonzero...
- numpy.count_nonzero (Python function, in numpy.count_nonzero)
- NumPy 1.12.0 Release Notes
...is=0 and axis=1 respectively. The newly added flip function reverses the elements of an array along any given axis. np.count_nonzero now has an axis parameter, allowing non-zero counts to be generated on more than just a flattened array ob...
- NumPy 1.13.2 Release Notes
...ions #9766 BUG: Fixes histogram monotonicity check for unsigned bin values #9767 BUG: Ensure consistent result dtype of count_nonzero #9771 BUG, MAINT: Fix mtrand for Cython 0.27....
- NumPy 1.13.3 Release Notes
...ions #9766 BUG: Fixes histogram monotonicity check for unsigned bin values #9767 BUG: Ensure consistent result dtype of count_nonzero #9771 BUG: MAINT: Fix mtrand for Cython 0.27. #9772 DOC: Create the 1.13.2 release notes. #9794 DOC: Creat...
- NumPy 1.14.0 Release Notes
...dtype('float64') # numpy 1.13 dtype('float32') # numpy 1.14 This change affects only float32 and float16 arrays. count_nonzero(arr, axis=()) now counts over no axes, not all axes Elsewhere, axis==() is always understood as “no axes”,...
- NumPy 1.19.0 Release Notes
...ng unnecessary copies of the final product computed by numpy.linalg.multidot. (gh-15715) keepdims parameter for numpy.count_nonzero The parameter keepdims was added to numpy.count_nonzero. The parameter has the same meaning as it does in...
- NumPy 1.6.0 Release Notes
...l array operations can be represented in a simple fashion. This function provides a way compute such summations. numpy.count_nonzero : Counts the number of non-zero elements in an array. numpy.result_type and numpy.min_scalar_type : These...
- NumPy 1.7.2 Release Notes
...xis=None now requires equal number of array elements gh-2485: Fix for astype(‘S’) string truncate issue gh-3312: bug in count_nonzero gh-2684: numpy.ma.average casts complex to float under certain conditions gh-2403: masked array with named...
- numpy.count_nonzero
...mPy reference Routines and objects by topic Sorting, searching, and counting numpy.count_nonzero...
- numpy.linalg.svdvals
...[2, 4, 6], ... [-1, 1, -1]]); s array([8.38434191e+00, 1.64402274e+00, 2.31534378e-16]) >>> np.count_nonzero(s > 1e-10) # Matrix of rank 2 2...
- numpy.ma.masked_array.nonzero
...ndices that are non-zero in the flattened version of the input array. numpy.ndarray.nonzeroEquivalent ndarray method. count_nonzeroCounts the number of non-zero elements in the input array. Examples >>> import numpy as np >>> import nu...
- numpy.ma.MaskedArray.nonzero
...ndices that are non-zero in the flattened version of the input array. numpy.ndarray.nonzeroEquivalent ndarray method. count_nonzeroCounts the number of non-zero elements in the input array. Examples >>> import numpy as np >>> import nu...
- numpy.ma.nonzero
...ndices that are non-zero in the flattened version of the input array. numpy.ndarray.nonzeroEquivalent ndarray method. count_nonzeroCounts the number of non-zero elements in the input array. Examples >>> import numpy as np >>> import nu...
- numpy.nonzero
...turn indices that are non-zero in the flattened version of the input array. ndarray.nonzeroEquivalent ndarray method. count_nonzeroCounts the number of non-zero elements in the input array. Notes While the nonzero values can be obtaine...
- Datetimes and timedeltas
...s: Example >>> import numpy as np >>> a = np.arange(np.datetime64('2011-07-11'), np.datetime64('2011-07-18')) >>> np.count_nonzero(np.is_busday(a)) 5 Custom weekmasks Here are several examples of custom weekmask values. These examp...