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
↓ 4 callers
Function
wrap_aligned_transferfunction
* Internal wrapping of casts that have to be performed in a "single" * function (i.e. not by the generic multi-step-cast), but rely on it * internal
numpy/core/src/multiarray/dtype_transfer.c:3127
↓ 4 callers
Function
zlacrm_
Subroutine */
numpy/linalg/lapack_lite/f2c_z_lapack.c:9229
↓ 4 callers
Function
zunmqr_
Subroutine */
numpy/linalg/lapack_lite/f2c_z_lapack.c:29429
↓ 3 callers
Function
BigInt_Copy
Copy integer */
numpy/core/src/multiarray/dragon4.c:190
↓ 3 callers
Function
BigInt_Multiply
* result = lhs * rhs */
numpy/core/src/multiarray/dragon4.c:381
↓ 3 callers
Function
BigInt_Set_uint64
Basic type accessors */
numpy/core/src/multiarray/dragon4.c:203
↓ 3 callers
Function
NpyArg_ParseKeywords
NpyArg_ParseKeywords * * Utility function that provides the keyword parsing functionality of * PyArg_ParseTupleAndKeywords without having to have a
numpy/core/src/multiarray/methods.c:45
↓ 3 callers
Function
NpyIter_EnableExternalLoop
NUMPY_API * Removes the inner loop handling (so HasExternalLoop returns true) */
numpy/core/src/multiarray/nditer_api.c:192
↓ 3 callers
Function
NpyIter_HasExternalLoop
NUMPY_API * Whether the iterator handles the inner loop */
numpy/core/src/multiarray/nditer_api.c:737
↓ 3 callers
Function
NpyIter_HasIndex
NUMPY_API * Whether the iterator is tracking an index */
numpy/core/src/multiarray/nditer_api.c:755
↓ 3 callers
Function
NumPyOS_ascii_isalnum
* NumPyOS_ascii_isalnum: * * Same as isalnum under C locale */
numpy/core/src/common/numpyos.c:384
↓ 3 callers
Function
PyArray_AddLegacyWrapping_CastingImpl
* This function wraps a legacy cast into an array-method. This is mostly * used for legacy user-dtypes, but for example numeric to/from datetime * c
numpy/core/src/multiarray/usertypes.c:610
↓ 3 callers
Function
PyArray_CastingConverter
NUMPY_API * Convert any Python object, *obj*, to an NPY_CASTING enum. */
numpy/core/src/multiarray/conversion_utils.c:941
↓ 3 callers
Function
PyArray_CheckCastSafety
* Check whether a cast is safe, see also `PyArray_GetCastInfo` for * a similar function. Unlike GetCastInfo, this function checks the * `castingimp
numpy/core/src/multiarray/convert_datatype.c:571
↓ 3 callers
Function
PyArray_CheckFromAny
NUMPY_API * steals a reference to descr -- accepts NULL */
numpy/core/src/multiarray/ctors.c:1762
↓ 3 callers
Function
PyArray_Conjugate
NUMPY_API * Conjugate */
numpy/core/src/multiarray/calculation.c:1166
↓ 3 callers
Function
PyArray_CopyAnyInto
NUMPY_API * Copy an Array into another array -- memory must not overlap * Does not require src and dest to have "broadcastable" shapes * (only the
numpy/core/src/multiarray/ctors.c:2760
↓ 3 callers
Function
PyArray_CopyAsFlat
* Private implementation of PyArray_CopyAnyInto with an additional order * parameter. */
numpy/core/src/multiarray/ctors.c:2565
↓ 3 callers
Function
PyArray_DTypeFromObject
* This function is now identical to the new PyArray_DiscoverDTypeAndShape * but only returns the dtype. It should in most cases be slowly phased out.
numpy/core/src/multiarray/common.c:114
↓ 3 callers
Function
PyArray_DescrFromObject
NUMPY_API * new reference -- accepts NULL for mintype */
numpy/core/src/multiarray/ctors.c:2467
↓ 3 callers
Function
PyArray_DescrFromTypeObject
New reference */ NUMPY_API */
numpy/core/src/multiarray/scalarapi.c:389
↓ 3 callers
Function
PyArray_EnsureArray
NUMPY_API * This is a quick wrapper around * PyArray_FromAny(op, NULL, 0, 0, NPY_ARRAY_ENSUREARRAY, NULL) * that special cases Arrays and PyArray_S
numpy/core/src/multiarray/ctors.c:2529
↓ 3 callers
Function
PyArray_FillObjectArray
NUMPY_API * Assumes contiguous */
numpy/core/src/multiarray/refcount.c:361
↓ 3 callers
Function
PyArray_Flatten
NUMPY_API * Flatten */
numpy/core/src/multiarray/shape.c:958
↓ 3 callers
Function
PyArray_FromScalar
NUMPY_API * Get 0-dim array from scalar * * 0-dim array from array-scalar object * always contains a copy of the data * unless outcode is NULL, i
numpy/core/src/multiarray/scalarapi.c:236
↓ 3 callers
Function
PyArray_GetMaskedDTypeTransferFunction
numpy/core/src/multiarray/dtype_transfer.c:3307
↓ 3 callers
Function
PyArray_Item_INCREF
NUMPY_API * XINCREF all objects in a single array item. This is complicated for * structured datatypes where the position of objects needs to be ext
numpy/core/src/multiarray/refcount.c:122
↓ 3 callers
Function
PyArray_LookupSpecial
* Lookup a special method, following the python approach of looking up * on the type object, rather than on the instance itself. * * Assumes that t
numpy/core/src/common/get_attr_string.h:49
↓ 3 callers
Function
PyArray_MapIterCheckIndices
* Check whether the fancy indices are out of bounds. * Returns 0 on success and -1 on failure. * (Gets operands from the outer iterator, but iterate
numpy/core/src/multiarray/mapping.c:2558
↓ 3 callers
Function
PyArray_MapIterNew
* Create new mapiter. * * NOTE: The outer iteration (and subspace if requested buffered) is * created with DELAY_BUFALLOC. It must be reset b
numpy/core/src/multiarray/mapping.c:2731
↓ 3 callers
Function
PyArray_New
NUMPY_API * Generic new array creation routine. */
numpy/core/src/multiarray/ctors.c:1172
↓ 3 callers
Function
PyArray_Nonzero
NUMPY_API * Nonzero * * TODO: In NumPy 2.0, should make the iteration order a parameter. */
numpy/core/src/multiarray/item_selection.c:2769
↓ 3 callers
Function
PyArray_PrepareOneRawArrayIter
* Prepares shape and strides for a simple raw array iteration. * This sorts the strides into FORTRAN order, reverses any negative * strides, then co
numpy/core/src/multiarray/dtype_transfer.c:3460
↓ 3 callers
Function
PyArray_PyIntAsInt_ErrMsg
numpy/core/src/multiarray/conversion_utils.c:955
↓ 3 callers
Function
PyArray_RawIterBaseInit
* This is common initialization code between PyArrayIterObject and * PyArrayNeighborhoodIterObject * * Steals a reference to the array object which
numpy/core/src/multiarray/iterators.c:126
↓ 3 callers
Function
PyArray_Scalar
Does nothing with descr (cannot be NULL) */ NUMPY_API Get scalar-equivalent to a region of memory described by a descriptor. */
numpy/core/src/multiarray/scalarapi.c:621
↓ 3 callers
Function
PyArray_SubclassWrap
* Calls arr_of_subclass.__array_wrap__(towrap), in order to make 'towrap' * have the same ndarray subclass as 'arr_of_subclass'. */
numpy/core/src/multiarray/ctors.c:4046
↓ 3 callers
Function
PyArray_ToString
NUMPY_API*/
numpy/core/src/multiarray/convert.c:323
↓ 3 callers
Function
PyArray_Zeros
NUMPY_API * Zeros * * steals a reference to type. On failure or when dtype->subarray is * true, dtype will be decrefed. * accepts NULL type */
numpy/core/src/multiarray/ctors.c:2851
↓ 3 callers
Function
PyUFunc_CheckOverride
* Check a set of args for the `__array_ufunc__` method. If more than one of * the input arguments implements `__array_ufunc__`, they are tried in th
numpy/core/src/umath/override.c:213
↓ 3 callers
Function
PyUFunc_FromFuncAndDataAndSignature
UFUNC_API*/
numpy/core/src/umath/ufunc_object.c:5170
↓ 3 callers
Function
PyUFunc_GenericReduction
* This code handles reduce, reduceat, and accumulate * (accumulate and reduce are special cases of the more general reduceat * but they are handled
numpy/core/src/umath/ufunc_object.c:3968
↓ 3 callers
Function
PyUFunc_GetDefaultIdentity
* Returns a new reference to the ufunc identity. Note that this identity * is only a default identity value stored on the ufunc, since the invidiual
numpy/core/src/umath/ufunc_object.c:2123
↓ 3 callers
Function
PyUFunc_RegisterLoopForDescr
* This function allows the user to register a 1-d loop with an already * created ufunc. This function is similar to RegisterLoopForType except * tha
numpy/core/src/umath/ufunc_object.c:5423
↓ 3 callers
Function
PyUFunc_handlefperr
UFUNC_API*/
numpy/core/src/umath/ufunc_object.c:145
↓ 3 callers
Function
_PyArray_MapPyTypeToDType
* Add a new mapping from a python type to the DType class. For a user * defined legacy dtype, this function does nothing unless the pytype * subclas
numpy/core/src/multiarray/array_coercion.c:150
↓ 3 callers
Method
__array__
(self)
numpy/core/tests/test_multiarray.py:9682
↓ 3 callers
Method
__array__
(self, dtype: None | np.dtype[Any] = None)
numpy/typing/tests/data/pass/array_like.py:23
↓ 3 callers
Method
__array_wrap__
(self, *args)
numpy/lib/user_array.py:248
↓ 3 callers
Method
__has_singleton
(cls)
numpy/ma/core.py:6545
↓ 3 callers
Method
__init__
(self)
numpy/lib/index_tricks.py:530
↓ 3 callers
Method
__init__
(self, info, name='<default>')
numpy/linalg/lapack_lite/clapack_scrub.py:17
↓ 3 callers
Method
__init__
(self)
numpy/distutils/system_info.py:1292
↓ 3 callers
Method
__init__
(self, verbose=0, dry_run=0, force=0)
numpy/distutils/intelccompiler.py:16
↓ 3 callers
Method
__new__
(cls,arr,info={})
numpy/ma/tests/test_subclassing.py:26
↓ 3 callers
Method
__setstate__
Restore the internal state of the masked array, for pickling purposes. ``state`` is typically the output of the ``__getstate__`` outp
numpy/ma/core.py:6293
↓ 3 callers
Method
_add_line_info
(self, msg, pos)
tools/npy_tempita/__init__.py:376
↓ 3 callers
Method
_align
A convenience function for operations that need to preserve axis orientation.
numpy/matrixlib/defmatrix.py:241
↓ 3 callers
Function
_aligned_zeros
Allocate a new ndarray with aligned memory. The ndarray is guaranteed *not* aligned to twice the requested alignment. Eg, if align=4, gu
numpy/core/tests/test_multiarray.py:50
↓ 3 callers
Function
_array_descr_walk
* 'Root' function to walk into a dtype. May be called recursively */
numpy/core/src/multiarray/hashdescr.c:232
↓ 3 callers
Method
_as_dict
(self, m)
numpy/core/tests/test_scalarbuffer.py:95
↓ 3 callers
Function
_broadcast_shape
Returns the shape of the arrays that would result from broadcasting the supplied arrays against each other.
numpy/lib/stride_tricks.py:416
↓ 3 callers
Function
_c_string_literal
Convert a python string into a literal suitable for inclusion into C code
numpy/distutils/system_info.py:224
↓ 3 callers
Method
_check_inverse_of_slicing
(self, indices)
numpy/lib/tests/test_function_base.py:858
↓ 3 callers
Function
_check_version
(version)
numpy/lib/format.py:196
↓ 3 callers
Method
_clear_registries
(self)
numpy/testing/_private/utils.py:2088
↓ 3 callers
Function
_cook_nd_args
(a, s=None, axes=None, invreal=0)
numpy/fft/_pocketfft.py:682
↓ 3 callers
Function
_copyto
Replace values in `a` with NaN where `mask` is True. This differs from copyto in that it will deal with the case where `a` is a numpy scalar
numpy/lib/nanfunctions.py:113
↓ 3 callers
Function
_cseries_to_zseries
Convert Chebyshev series to z-series. Convert a Chebyshev series to the equivalent z-series. The result is never an empty array. The dtype of
numpy/polynomial/chebyshev.py:133
↓ 3 callers
Function
_ctype_from_dtype
(dtype)
numpy/ctypeslib.py:456
↓ 3 callers
Function
_ctype_ndarray
Create an ndarray of the given element type and shape
numpy/ctypeslib.py:351
↓ 3 callers
Function
_decode_line
Decode bytes from binary input streams. Defaults to decoding from 'latin1'. That differs from the behavior of np.compat.asunicode that decode
numpy/lib/_iotools.py:11
↓ 3 callers
Function
_discovered_machar
Create MachAr instance with found information on float types TODO: MachAr should be retired completely ideally. We currently only eve
numpy/core/getlimits.py:364
↓ 3 callers
Method
_dist_str
Return a string to print by log and errors.
numpy/distutils/ccompiler_opt.py:712
↓ 3 callers
Method
_do_test
(self, t1, t2)
numpy/core/tests/test_scalar_ctors.py:94
↓ 3 callers
Method
_eval
(self, code, ns, pos)
tools/npy_tempita/__init__.py:305
↓ 3 callers
Function
_extract_pyvals
* Extracts some values from the global pyvals tuple. * all destinations may be NULL, in which case they are not retrieved * ref - should hold the gl
numpy/core/src/umath/extobj.c:189
↓ 3 callers
Function
_fix_real_abs_gt_1
Convert `x` to complex if it has real components x_i with abs(x_i)>1. Otherwise, output is just the array version of the input (via asarray).
numpy/lib/scimath.py:167
↓ 3 callers
Function
_get_compiler_status
()
numpy/f2py/tests/util.py:205
↓ 3 callers
Function
_get_legacy_print_mode
Return the legacy print mode as an int.
numpy/core/arrayprint.py:329
↓ 3 callers
Function
_get_num_chars
Helper function that returns the number of characters per field in a string or unicode array. This is to abstract out the fact that for
numpy/core/defchararray.py:89
↓ 3 callers
Function
_is_alpha_underscore
numpy/core/src/umath/ufunc_object.c:560
↓ 3 callers
Function
_is_string_like
Check whether obj behaves like a string.
numpy/lib/_iotools.py:37
↓ 3 callers
Function
_multistep_cast_auxdata_clone_int
numpy/core/src/multiarray/dtype_transfer.c:2658
↓ 3 callers
Function
_no_nep50_warning
Context manager to disable NEP 50 warnings. This context manager is only relevant if the NEP 50 warnings are enabled globally (which is not
numpy/core/_ufunc_config.py:454
↓ 3 callers
Function
_none_or_positive_arg
(x, name)
numpy/core/arrayprint.py:898
↓ 3 callers
Function
_npy_free_cache
* return pointer p to cache, nelem is number of elements of the cache bucket * size (1 or sizeof(npy_intp)) of the block pointed too */
numpy/core/src/multiarray/alloc.c:129
↓ 3 callers
Function
_npy_spacing
numpy/core/src/npymath/ieee754.cpp:344
↓ 3 callers
Function
_pairs_add
(d, k, v)
numpy/f2py/symbolic.py:136
↓ 3 callers
Function
_parse_env_order
Parse an environment variable `env` by splitting with "," and only returning elements from `base_order` This method will sequence the environmen
numpy/distutils/system_info.py:417
↓ 3 callers
Function
_read_bytes
Read from file-like object until size bytes are read. Raises ValueError if not EOF is encountered before size bytes are read. Non-blockin
numpy/lib/format.py:951
↓ 3 callers
Function
_replace_dtype_fields
Construct a dtype description list from a given dtype. Returns a new dtype object, with all fields and subtypes in the given type recurs
numpy/ma/core.py:1315
↓ 3 callers
Method
_report_item_name
(self, out, new_line=False)
tools/refguide_check.py:635
↓ 3 callers
Method
_repr_latex_
(self)
numpy/polynomial/_polybase.py:440
↓ 3 callers
Function
_safe_print
* Thin wrapper around print that ignores exceptions */
numpy/core/src/multiarray/dtype_transfer.c:67
↓ 3 callers
Method
_test_base
(self, argsort, cls)
numpy/ma/tests/test_deprecations.py:14
↓ 3 callers
Method
_test_cast_from_flexible
(self, dtype)
numpy/core/tests/test_multiarray.py:1703
↓ 3 callers
Method
_test_lcm_inner
(self, dtype)
numpy/core/tests/test_umath.py:3977
↓ 3 callers
Function
_test_nextafter
(t)
numpy/core/tests/test_umath.py:4434
↓ 3 callers
Function
_test_spacing
(t)
numpy/core/tests/test_umath.py:4473
← previous
next →
1,101–1,200 of 17,008, ranked by callers