Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cupy/cupy
/ functions
Functions
14,004 in github.com/cupy/cupy
⨍
Functions
14,004
◇
Types & classes
1,924
↳
Endpoints
141
↓ 690 callers
Method
zeros
Zeros of the `ZerosPolesGain` system.
cupyx/scipy/signal/_ltisys.py:770
↓ 448 callers
Method
astype
Cast the array elements to a specified type. Args: dtype: Target dtype. copy (bool): If ``True`` (default), the retur
cupyx/scipy/sparse/_base.py:372
↓ 427 callers
Method
reshape
Gives a new shape to a sparse matrix without changing its data. Args: shape (tuple): The new shape should be comp
cupyx/scipy/sparse/_base.py:574
↓ 305 callers
Method
dtype
Data type of the matrix.
cupyx/scipy/sparse/_data.py:25
↓ 240 callers
Method
get
Return a copy of this object on host memory. Args: stream (cupy.cuda.Stream): CUDA stream object. If it is given,
cupyx/scipy/sparse/_base.py:62
↓ 225 callers
Method
toarray
Return a dense ndarray representation of this matrix.
cupyx/scipy/sparse/_base.py:704
↓ 220 callers
Method
sum
Sums the matrix elements over a given axis. Args: axis (int or ``None``): Axis along which the sum is computed. I
cupyx/scipy/sparse/_base.py:613
↓ 206 callers
Method
copy
(x, y)
tests/cupyx_tests/jit_tests/test_thrust.py:115
↓ 186 callers
Method
join
(self)
cupyx/distributed/_store.py:39
↓ 150 callers
Method
all
(self, axis=None, out=None, keepdims=False)
cupy/_core/_fusion_interface.py:178
↓ 133 callers
Function
f
(*args, **kwargs)
tests/cupy_tests/random_tests/test_generator.py:83
↓ 122 callers
Method
dot
Ordinary dot product
cupyx/scipy/sparse/_base.py:461
↓ 117 callers
Method
_from_parts
Construct from pre-validated arrays (no check_contents). Internal API for building COO matrices when the caller has already determine
cupyx/scipy/sparse/_coo.py:294
↓ 109 callers
Method
sort
(x)
tests/cupyx_tests/jit_tests/test_thrust.py:933
↓ 100 callers
Method
conj
Element-wise complex conjugation. If the matrix is of non-complex data type and `copy` is False, this method does nothing and the dat
cupyx/scipy/sparse/_base.py:393
↓ 98 callers
Function
func
(kernel, arr, barrier)
tests/cupy_tests/core_tests/test_multithreading.py:73
↓ 92 callers
Function
_correct_np_dtype
(xp, dtype, out)
tests/cupyx_tests/scipy_tests/fft_tests/test_fft.py:33
↓ 91 callers
Method
make
(self)
tests/cupyx_tests/scipy_tests/sparse_tests/test_csr.py:508
↓ 91 callers
Method
transpose
Reverses the dimensions of the sparse matrix.
cupyx/scipy/sparse/_base.py:740
↓ 90 callers
Method
copy
Returns a copy of this matrix. No data/indices will be shared between the returned value and current matrix.
cupyx/scipy/sparse/_base.py:419
↓ 87 callers
Method
generate
(self, *args, **kwargs)
tests/cupy_tests/random_tests/common_distributions.py:71
↓ 81 callers
Method
ravel
Not supported.
cupyx/distributed/array/_array.py:621
↓ 76 callers
Function
_fft_module
(xp)
tests/cupyx_tests/scipy_tests/fft_tests/test_fft.py:23
↓ 76 callers
Method
tocsr
Convert this matrix to Compressed Sparse Row format.
cupyx/scipy/sparse/_base.py:720
↓ 75 callers
Method
max
Returns the maximum of the matrix or maximum along an axis. Args: axis (int): {-2, -1, 0, 1, ``None``} (optional)
cupyx/scipy/sparse/_data.py:418
↓ 72 callers
Method
make
(self)
tests/cupyx_tests/scipy_tests/sparse_tests/test_csc.py:465
↓ 68 callers
Function
_make
(xp, sp, dtype)
tests/cupyx_tests/scipy_tests/sparse_tests/test_coo.py:22
↓ 64 callers
Function
abs
cupy/_core/include/cupy/complex/arithmetic.h:240
↓ 61 callers
Method
mean
Compute the arithmetic mean along the specified axis. Returns the average of the matrix elements. The average is taken over
cupyx/scipy/sparse/_base.py:496
↓ 60 callers
Method
astype
(self, dtype, order=None, casting=None, subok=None, copy=True)
cupy/_core/_fusion_interface.py:150
↓ 59 callers
Method
imag
cupy/_core/include/cupy/complex/complex.h:194
↓ 59 callers
Method
min
Returns the minimum of the matrix or maximum along an axis. Args: axis (int): {-2, -1, 0, 1, ``None``} (optional)
cupyx/scipy/sparse/_data.py:454
↓ 59 callers
Method
prod
(self, axis=None, dtype=None, out=None, keepdims=False)
cupy/_core/_fusion_interface.py:168
↓ 59 callers
Method
real
cupy/_core/include/cupy/complex/complex.h:190
↓ 57 callers
Method
fill
(x)
tests/cupyx_tests/jit_tests/test_thrust.py:234
↓ 53 callers
Function
func
(self)
cupy/testing/_random.py:134
↓ 53 callers
Method
rand
Returns uniform random values over the interval ``[0, 1)``. .. seealso:: - :func:`cupy.random.rand` for full documentation
cupy/random/_generator.py:606
↓ 52 callers
Function
_make
(xp, sp, dtype)
tests/cupyx_tests/scipy_tests/sparse_tests/test_csr.py:24
↓ 51 callers
Method
repeat
Not supported.
cupyx/distributed/array/_array.py:631
↓ 50 callers
Function
_default_fft_func
(a, s=None, axes=None, plan=None, value_type='C2C')
cupy/fft/_fft.py:636
↓ 49 callers
Method
sum_duplicates
Eliminate duplicate matrix entries by adding them together. .. warning:: When sorting the indices, CuPy follows the convention of
cupyx/scipy/sparse/_coo.py:660
↓ 48 callers
Method
cumsum
Not supported.
cupyx/distributed/array/_array.py:505
↓ 48 callers
Method
malloc
(self, size, device_id)
tests/cupy_tests/cuda_tests/test_memory.py:958
↓ 46 callers
Method
tocoo
Convert this matrix to COOrdinate format.
cupyx/scipy/sparse/_base.py:712
↓ 45 callers
Method
begin
(self, env, instance: Data, *args)
cupyx/jit/_cuda_types.py:163
↓ 45 callers
Method
end
(self, env, instance: Data, *args)
cupyx/jit/_cuda_types.py:175
↓ 45 callers
Method
view
Not supported.
cupyx/distributed/array/_array.py:749
↓ 44 callers
Method
argmax
Returns indices of maximum elements along an axis. Implicit zero elements are taken into account. If there are several maximum values
cupyx/scipy/sparse/_data.py:490
↓ 44 callers
Method
multiply
Point-wise multiplication by another matrix
cupyx/scipy/sparse/_base.py:565
↓ 44 callers
Method
searchsorted
Not supported.
cupyx/distributed/array/_array.py:661
↓ 44 callers
Method
tocsc
Convert this matrix to Compressed Sparse Column format.
cupyx/scipy/sparse/_base.py:716
↓ 43 callers
Function
_assert_exec_policy_type
(exec_policy: _Data)
cupyx/jit/thrust.py:28
↓ 43 callers
Function
_assert_same_type
(a: _Data, b: _Data)
cupyx/jit/thrust.py:39
↓ 43 callers
Function
_make
(xp, sp, dtype)
tests/cupyx_tests/scipy_tests/sparse_tests/test_csc.py:22
↓ 43 callers
Method
randint
Returns a scalar or an array of integer values over ``[low, high)``. .. seealso:: - :func:`cupy.random.randint` for full document
cupy/random/_generator.py:1261
↓ 41 callers
Method
any
(self, axis=None, out=None, keepdims=False)
cupy/_core/_fusion_interface.py:181
↓ 40 callers
Method
check_ks
(self, significance_level, cupy_len=100, numpy_len=1000)
tests/cupy_tests/random_tests/common_distributions.py:95
↓ 40 callers
Method
uniform
Returns an array of uniformly-distributed samples over an interval. .. seealso:: - :func:`cupy.random.uniform` for full documenta
cupy/random/_generator.py:1006
↓ 39 callers
Function
convert_hipblasOperation_t
---------- helpers ---------- */
cupy_backends/hip/cupy_hipblas.h:37
↓ 37 callers
Function
_assert_pointer_type
(a: _Data)
cupyx/jit/thrust.py:33
↓ 37 callers
Function
any
Tests whether any array elements along a given axis evaluate to True. Parameters ---------- a : cupy.ndarray Input array. axi
cupy/_logic/truth.py:55
↓ 37 callers
Function
assert_allclose
Raises an AssertionError if objects are not equal up to desired tolerance. Args: actual(numpy.ndarray or cupy.ndarray): The actual objec
cupy/testing/_array.py:13
↓ 37 callers
Method
item
Not supported.
cupyx/distributed/array/_array.py:540
↓ 37 callers
Method
swapaxes
Not supported.
cupyx/distributed/array/_array.py:704
↓ 37 callers
Method
unique
(x, size)
tests/cupyx_tests/jit_tests/test_thrust.py:1059
↓ 36 callers
Method
any
Not supported.
cupyx/distributed/array/_array.py:450
↓ 36 callers
Method
argmin
Returns indices of minimum elements along an axis. Implicit zero elements are taken into account. If there are several minim
cupyx/scipy/sparse/_data.py:514
↓ 36 callers
Method
todense
Return a dense matrix representation of this matrix.
cupyx/scipy/sparse/_base.py:724
↓ 34 callers
Method
squeeze
Not supported.
cupyx/distributed/array/_array.py:676
↓ 33 callers
Method
indices
(self, xp)
tests/cupyx_tests/scipy_tests/sparse_tests/test_csr.py:353
↓ 32 callers
Function
all
Tests whether all array elements along a given axis evaluate to True. Parameters ---------- a : cupy.ndarray Input array. axi
cupy/_logic/truth.py:18
↓ 31 callers
Function
check_availability
(name)
cupyx/cusparse.py:289
↓ 31 callers
Method
copy
Get a copy of the iterator as a 1-D array.
cupy/_indexing/iterate.py:119
↓ 31 callers
Method
prod
Return the minimum along a given axis. .. note:: Currently, it only supports non-``None`` values for ``axis`` and th
cupyx/distributed/array/_array.py:593
↓ 29 callers
Method
asformat
Return this matrix in a given sparse format. Args: format (str or None): Format you need.
cupyx/scipy/sparse/_base.py:361
↓ 29 callers
Method
nonzero
Indices of the non-zero elements. Returns a tuple of cupy.ndarrays, one per dimension -- ``(row, col)`` for a 2-D array/matrix or ``(
cupyx/scipy/sparse/_base.py:477
↓ 28 callers
Method
all
Not supported.
cupyx/distributed/array/_array.py:445
↓ 28 callers
Method
argsort
(self, a, axis=-1)
tests/cupy_tests/sorting_tests/test_sort.py:293
↓ 28 callers
Method
check_distribution
(self, dist_func, dfnum_dtype, dfden_dtype, dtype)
tests/cupy_tests/random_tests/test_distributions.py:147
↓ 27 callers
Method
_run
(self, maj, min=None, data=5, density=None)
tests/cupyx_tests/scipy_tests/sparse_tests/test_index.py:45
↓ 27 callers
Method
check_array_scalar_op
(self, op, xp, x_type, y_type, swap=False, no_bool=False, no_complex=False)
tests/cupy_tests/core_tests/test_ndarray_elementwise_op.py:16
↓ 27 callers
Method
mdspan
Not supported.
cupyx/distributed/array/_array.py:564
↓ 26 callers
Method
create
(cls)
cupyx/cusparse.py:40
↓ 26 callers
Method
diagonal
Returns the k-th diagonal of the matrix. Args: k (int, optional): Which diagonal to get, corresponding to elements a[
cupyx/scipy/sparse/_base.py:435
↓ 25 callers
Function
assert_array_almost_equal
Raises an AssertionError if objects are not equal up to desired precision. Args: x(numpy.ndarray or cupy.ndarray): The actual object to
cupy/testing/_array.py:51
↓ 25 callers
Method
count_nonzero
Number of non-zero entries. Subclasses override this; ``_spbase`` itself does not implement a generic counter.
cupyx/scipy/sparse/_base.py:427
↓ 25 callers
Method
dtype
(self)
cupy/_core/_fusion_interface.py:185
↓ 25 callers
Method
randn
Returns an array of standard normal random values. .. seealso:: - :func:`cupy.random.randn` for full documentation -
cupy/random/_generator.py:620
↓ 24 callers
Function
_make_csr
3x4 CSR with 4 nonzeros.
tests/cupyx_tests/scipy_tests/sparse_tests/test_sparray.py:45
↓ 24 callers
Function
convert_rocblas_fill
TODO(leofang): perhaps these should be merged with the support of hipBLAS?
cupy_backends/hip/cupy_rocsolver.h:11
↓ 23 callers
Method
_filter
The function that all tests end up calling, possibly after a few adjustments to the class "parameters".
tests/cupyx_tests/scipy_tests/ndimage_tests/test_filters.py:49
↓ 23 callers
Method
broadcast
(self, in_out_array, root=0, stream=None)
cupyx/distributed/_comm.py:27
↓ 23 callers
Method
build
(self, scp, *args, **kwargs)
tests/cupyx_tests/scipy_tests/interpolate_tests/test_rbfinterp.py:544
↓ 23 callers
Method
clip
Not supported.
cupyx/distributed/array/_array.py:485
↓ 22 callers
Function
_launch_workers
(func, args=(), n_workers=N_WORKERS)
tests/cupyx_tests/distributed_tests/comm_runner.py:24
↓ 22 callers
Method
dumps
Not supported.
cupyx/distributed/array/_array.py:525
↓ 22 callers
Method
roots
Find real roots of the piecewise polynomial. Parameters ---------- discontinuity : bool, optional Whethe
cupyx/scipy/interpolate/_interpolate.py:1308
↓ 21 callers
Function
_check_include
(env, header)
cupyx/jit/cg.py:27
↓ 21 callers
Method
choice
Returns an array of random values from a given 1-D array. .. seealso:: - :func:`cupy.random.choice` for full documentation
cupy/random/_generator.py:1114
↓ 21 callers
Method
query
r""" Query the kd-tree for nearest neighbors. Parameters ---------- x : array_like, last dimension self.m
cupyx/scipy/spatial/_kdtree.py:163
next →
1–100 of 14,004, ranked by callers