Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/numpy/numpy
/ functions
Functions
17,008 in github.com/numpy/numpy
⨍
Functions
17,008
◇
Types & classes
2,137
↳
Endpoints
358
↓ 37 callers
Function
t
(name, statement)
doc/neps/nep-0016-benchmark.py:33
↓ 36 callers
Method
_rc
(self, a)
numpy/lib/user_array.py:242
↓ 36 callers
Method
max
Return the maximum along a given axis. Parameters ---------- axis : None or int or tuple of ints, optional
numpy/ma/core.py:5859
↓ 36 callers
Method
take
numpy/ma/core.py:6066
↓ 35 callers
Method
_data
(self, start=None, count=None, reverse=False)
numpy/core/tests/test_simd.py:129
↓ 35 callers
Method
fastclip
(self, a, m, M, out=None, **kwargs)
numpy/core/tests/test_numeric.py:1839
↓ 35 callers
Function
next
numpy/random/src/splitmix64/splitmix64.orig.c:23
↓ 35 callers
Method
write
(self, data)
numpy/distutils/command/config.py:508
↓ 34 callers
Method
encode
Calls `str.encode` element-wise. See Also -------- char.encode
numpy/core/defchararray.py:2306
↓ 34 callers
Function
filled
Return input as an array with masked data replaced by a fill value. If `a` is not a `MaskedArray`, `a` itself is returned. If `a` is a `
numpy/ma/core.py:587
↓ 34 callers
Method
open
Open and return file-like object. If `path` is an URL, it will be downloaded, stored in the `DataSource` directory and opene
numpy/lib/_datasource.py:487
↓ 33 callers
Function
PyArray_FromAny
NUMPY_API * Does not check for NPY_ARRAY_ENSURECOPY and NPY_ARRAY_NOTSWAPPED in flags * Steals a reference to newtype --- which can be NULL */
numpy/core/src/multiarray/ctors.c:1501
↓ 33 callers
Function
assert_array_equal
Checks the elementwise equality of two masked arrays.
numpy/ma/testutils.py:220
↓ 33 callers
Function
assert_array_strict_equal
(x, y)
numpy/core/tests/test_numeric.py:1817
↓ 33 callers
Method
func
(arr)
numpy/core/tests/test_numeric.py:1617
↓ 33 callers
Method
get_version
(self,*args,**kwds)
numpy/distutils/fcompiler/ibm.py:29
↓ 32 callers
Function
dtype
(request)
numpy/random/tests/test_smoke.py:12
↓ 32 callers
Method
mean
Returns the average of the array elements along given axis. Masked entries are ignored, and result elements which are not fi
numpy/ma/core.py:5306
↓ 32 callers
Method
values
(self)
numpy/lib/tests/test_function_base.py:1261
↓ 31 callers
Function
NPY_cast_info_xfree
* Free's all references and data held inside the struct (not the struct). * First checks whether `cast_info.func == NULL`, and assume it is * uninit
numpy/core/src/multiarray/dtype_transfer.h:55
↓ 31 callers
Method
copy
(self)
numpy/lib/user_array.py:222
↓ 31 callers
Function
sum
Sum of array elements over a given axis. Parameters ---------- a : array_like Elements to sum. axis : None or int or tup
numpy/core/fromnumeric.py:2178
↓ 30 callers
Method
fromstring
(cls, s, language=Language.C)
numpy/f2py/symbolic.py:78
↓ 30 callers
Function
getmaskarray
Return the mask of a masked array, or full boolean array of False. Return the mask of `arr` as an ndarray if `arr` is a `MaskedArray` and
numpy/ma/core.py:1424
↓ 30 callers
Function
npy_cache_import
! \brief Fetch and cache Python function. * * Import a Python function and cache it for use. The function checks if * cache is NULL, and if not NUL
numpy/core/src/common/npy_import.h:19
↓ 30 callers
Method
setSeed
(self)
numpy/random/tests/test_random.py:1059
↓ 30 callers
Method
set_seed
(self)
numpy/random/tests/test_randomstate.py:1319
↓ 30 callers
Method
tobytes
Return the array data as a string containing the raw bytes in the array. The array is filled with a fill value before the string con
numpy/ma/core.py:6168
↓ 30 callers
Method
var
Returns the variance of the array elements along given axis. Masked entries are ignored, and result elements which are not f
numpy/ma/core.py:5398
↓ 29 callers
Function
NpyIter_Deallocate
NUMPY_API * Deallocate an iterator. * * To correctly work when an error is in progress, we have to check * `PyErr_Occurred()`. This is necessary w
numpy/core/src/multiarray/nditer_constr.c:678
↓ 29 callers
Function
PyArray_Return
NUMPY_API * * Return either an array or the appropriate Python object if the array * is 0d and matches a Python type. * steals reference to mp */
numpy/core/src/multiarray/scalarapi.c:778
↓ 29 callers
Function
is_string
(s)
numpy/distutils/misc_util.py:487
↓ 28 callers
Function
assert_all
(x)
numpy/lib/tests/test_type_check.py:11
↓ 28 callers
Method
check_output
(self, want, got, optionflags)
tools/refguide_check.py:682
↓ 28 callers
Function
eq
(v, w, msg='')
numpy/ma/tests/test_old_ma.py:29
↓ 28 callers
Function
mask_or
Combine two masks with the ``logical_or`` operator. The result may be a view on `m1` or `m2` if the other is `nomask` (i.e. False).
numpy/ma/core.py:1704
↓ 28 callers
Function
next_double
numpy/core/include/numpy/random/distributions.h:201
↓ 27 callers
Function
_result_type
(type1, type2)
numpy/array_api/_dtypes.py:177
↓ 27 callers
Function
any
Test whether any array element along a given axis evaluates to True. Returns single boolean if `axis` is ``None`` Parameters ------
numpy/core/fromnumeric.py:2323
↓ 27 callers
Function
dcopy_
Subroutine */
numpy/linalg/lapack_lite/f2c_blas.c:6642
↓ 27 callers
Method
max
Maximum value of given dtype.
numpy/core/getlimits.py:710
↓ 27 callers
Method
min
Return the minimum along a given axis. Parameters ---------- axis : None or int or tuple of ints, optional
numpy/ma/core.py:5760
↓ 27 callers
Method
resize
.. warning:: This method does nothing, except raise a ValueError exception. A masked array does not own its data and
numpy/ma/core.py:4752
↓ 27 callers
Function
scopy_
Subroutine */
numpy/linalg/lapack_lite/f2c_blas.c:11245
↓ 27 callers
Method
std
Returns the standard deviation of the array elements along given axis. Masked entries are ignored. Refer to `numpy.std` for
numpy/ma/core.py:5462
↓ 26 callers
Function
NpyIter_GetIterSize
NUMPY_API * Gets the number of elements being iterated */
numpy/core/src/multiarray/nditer_api.c:911
↓ 26 callers
Function
dict_append
(d, **kws)
numpy/distutils/system_info.py:3205
↓ 26 callers
Function
get_info
notfound_action: 0 - do nothing 1 - display warning message 2 - raise error
numpy/distutils/system_info.py:501
↓ 26 callers
Function
normalize_axis_index
numpy/core/src/multiarray/multiarraymodule.c:4454
↓ 26 callers
Method
record
Append a new recording filter or apply it if the state is entered. All warnings matching will be appended to the ``log`` attribute.
numpy/testing/_private/utils.py:2148
↓ 25 callers
Function
PyArray_DescrNewFromType
NUMPY_API*/
numpy/core/src/multiarray/descriptor.c:1363
↓ 25 callers
Method
byteswap
(self)
numpy/lib/user_array.py:234
↓ 25 callers
Function
empty
Array API compatible wrapper for :py:func:`np.empty <numpy.empty>`. See its docstring for more information.
numpy/array_api/_creation_functions.py:97
↓ 25 callers
Method
find
For each element, return the lowest index in the string where substring `sub` is found. See Also -------- ch
numpy/core/defchararray.py:2341
↓ 25 callers
Function
getdata
Return the data of a masked array as an ndarray. Return the data of `a` (if any) as an ndarray if `a` is a ``MaskedArray``, else return
numpy/ma/core.py:671
↓ 25 callers
Function
npy_clear_floatstatus_barrier
numpy/core/src/npymath/ieee754.cpp:440
↓ 24 callers
Function
NpyIter_GetDataPtrArray
NUMPY_API * Get the array of data pointers (1 per object being iterated) * * This function may be safely called without holding the Python GIL. */
numpy/core/src/multiarray/nditer_api.c:1087
↓ 24 callers
Function
PyArray_GetDTypeTransferFunction
numpy/core/src/multiarray/dtype_transfer.c:3087
↓ 24 callers
Function
isarray
(var)
numpy/f2py/auxfuncs.py:111
↓ 24 callers
Function
max
Return the maximum of an array or maximum along an axis. Parameters ---------- a : array_like Input data. axis : None or
numpy/core/fromnumeric.py:2694
↓ 24 callers
Method
outer
Return the function applied to the outer product of a and b.
numpy/ma/core.py:6786
↓ 24 callers
Function
ufunc_get_name_cstr
* Produce a name for the ufunc, if one is not already set * This is used in the PyUFunc_handlefperr machinery, and in error messages */
numpy/core/src/umath/ufunc_object.c:876
↓ 24 callers
Function
zeros
Array API compatible wrapper for :py:func:`np.zeros <numpy.zeros>`. See its docstring for more information.
numpy/array_api/_creation_functions.py:319
↓ 23 callers
Function
PyArray_NewFromDescrAndBase
* Sets the base object using PyArray_SetBaseObject */
numpy/core/src/multiarray/ctors.c:1006
↓ 23 callers
Function
outmess
(t)
numpy/f2py/auxfuncs.py:62
↓ 23 callers
Method
tofile
Save a masked array to a file in binary format. .. warning:: This function is not implemented yet. Raises
numpy/ma/core.py:6208
↓ 22 callers
Function
PyArray_DTypeFromTypeNum
* This function will hopefully be phased out or replaced, but was convenient * for incremental implementation of new DTypes based on DTypeMeta. * (E
numpy/core/src/multiarray/dtypemeta.h:127
↓ 22 callers
Function
PyArray_STRIDE
numpy/core/include/numpy/ndarraytypes.h:1540
↓ 22 callers
Method
accumulate
Accumulate `target` along `axis` after filling with y fill value.
numpy/ma/core.py:1112
↓ 22 callers
Function
dgemm_
Subroutine */
numpy/linalg/lapack_lite/f2c_blas.c:6837
↓ 22 callers
Method
dist_log
Print a console message
numpy/distutils/ccompiler_opt.py:692
↓ 22 callers
Function
dscal_
Subroutine */
numpy/linalg/lapack_lite/f2c_blas.c:7818
↓ 22 callers
Function
is_sequence
(seq)
numpy/distutils/misc_util.py:497
↓ 22 callers
Function
join
Return a string which is the concatenation of the strings in the sequence `seq`. Calls `str.join` element-wise. Parameters ----
numpy/core/defchararray.py:1028
↓ 22 callers
Function
pow_ii
(ap, bp)
numpy/linalg/lapack_lite/f2c.c:694
↓ 22 callers
Function
sgemm_
Subroutine */
numpy/linalg/lapack_lite/f2c_blas.c:11439
↓ 22 callers
Function
sscal_
Subroutine */
numpy/linalg/lapack_lite/f2c_blas.c:12418
↓ 21 callers
Function
NpyIter_GetInnerLoopSizePtr
NUMPY_API * Get a pointer to the size of the inner loop (when HasExternalLoop is true) * * This function may be safely called without holding the
numpy/core/src/multiarray/nditer_api.c:1421
↓ 21 callers
Function
PyArray_FailUnlessWriteable
NUMPY_API * * This function does nothing and returns 0 if *obj* is writeable. * It raises an exception and returns -1 if *obj* is not writeable.
numpy/core/src/multiarray/arrayobject.c:636
↓ 21 callers
Method
_test_not_equal
(self, a, b)
numpy/testing/tests/test_utils.py:24
↓ 21 callers
Function
as_number
Return object as INTEGER or REAL constant.
numpy/f2py/symbolic.py:950
↓ 21 callers
Function
assert_almost_equal
Asserts that two items are almost equal. The test is equivalent to abs(desired-actual) < 0.5 * 10**(-decimal).
numpy/ma/testutils.py:176
↓ 21 callers
Method
conjugate
(self)
numpy/core/tests/test_ufunc.py:124
↓ 21 callers
Function
dlacpy_
Subroutine */
numpy/linalg/lapack_lite/f2c_d_lapack.c:8424
↓ 21 callers
Method
flatten
Return a flattened copy of the matrix. All `N` elements of the matrix are placed into a single row. Parameters ----
numpy/matrixlib/defmatrix.py:377
↓ 21 callers
Method
get_lib_dirs
(self, key='library_dirs')
numpy/distutils/system_info.py:935
↓ 21 callers
Method
ndim
Array API compatible wrapper for :py:meth:`np.ndarray.ndim <numpy.ndarray.ndim>`. See its docstring for more information.
numpy/array_api/_array_object.py:1095
↓ 21 callers
Method
rstrip
For each element in `self`, return a copy with the trailing characters removed. See Also -------- char.rstri
numpy/core/defchararray.py:2582
↓ 21 callers
Function
setup
(**attr)
numpy/distutils/core.py:108
↓ 21 callers
Function
slacpy_
Subroutine */
numpy/linalg/lapack_lite/f2c_s_lapack.c:8402
↓ 21 callers
Method
squeeze
Return a possibly reshaped matrix. Refer to `numpy.squeeze` for more documentation. Parameters ---------- a
numpy/matrixlib/defmatrix.py:324
↓ 20 callers
Function
PyArray_EquivTypes
NUMPY_API * * This function returns true if the two typecodes are * equivalent (same basic kind and same itemsize). */
numpy/core/src/multiarray/multiarraymodule.c:1538
↓ 20 callers
Method
__setmask__
Set the mask.
numpy/ma/core.py:3445
↓ 20 callers
Method
_generate_data
(self, n, m)
numpy/core/tests/test_numeric.py:1848
↓ 20 callers
Method
cumsum
Return the cumulative sum of the array elements over the given axis. Masked values are set to 0 internally during the computation.
numpy/ma/core.py:5192
↓ 20 callers
Function
dlascl_
Subroutine */
numpy/linalg/lapack_lite/f2c_d_lapack.c:23771
↓ 20 callers
Function
get_datetime_metadata_from_dtype
* This function returns a pointer to the DateTimeMetaData * contained within the provided datetime dtype. */
numpy/core/src/multiarray/datetime.c:691
↓ 20 callers
Function
ones
Return a new array of given shape and type, filled with ones. Parameters ---------- shape : int or sequence of ints Shape of
numpy/core/numeric.py:138
↓ 20 callers
Function
slascl_
Subroutine */
numpy/linalg/lapack_lite/f2c_s_lapack.c:23688
↓ 19 callers
Function
NpyIter_GetInnerStrideArray
NUMPY_API * Get the array of strides for the inner loop (when HasExternalLoop is true) * * This function may be safely called without holding the P
numpy/core/src/multiarray/nditer_api.c:1268
← previous
next →
101–200 of 17,008, ranked by callers