MCPcopy Create free account

hub / github.com/cupy/cupy / functions

Functions14,004 in github.com/cupy/cupy

↓ 690 callersMethodzeros
Zeros of the `ZerosPolesGain` system.
cupyx/scipy/signal/_ltisys.py:770
↓ 448 callersMethodastype
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 callersMethodreshape
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 callersMethoddtype
Data type of the matrix.
cupyx/scipy/sparse/_data.py:25
↓ 240 callersMethodget
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 callersMethodtoarray
Return a dense ndarray representation of this matrix.
cupyx/scipy/sparse/_base.py:704
↓ 220 callersMethodsum
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 callersMethodcopy
(x, y)
tests/cupyx_tests/jit_tests/test_thrust.py:115
↓ 186 callersMethodjoin
(self)
cupyx/distributed/_store.py:39
↓ 150 callersMethodall
(self, axis=None, out=None, keepdims=False)
cupy/_core/_fusion_interface.py:178
↓ 133 callersFunctionf
(*args, **kwargs)
tests/cupy_tests/random_tests/test_generator.py:83
↓ 122 callersMethoddot
Ordinary dot product
cupyx/scipy/sparse/_base.py:461
↓ 117 callersMethod_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 callersMethodsort
(x)
tests/cupyx_tests/jit_tests/test_thrust.py:933
↓ 100 callersMethodconj
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 callersFunctionfunc
(kernel, arr, barrier)
tests/cupy_tests/core_tests/test_multithreading.py:73
↓ 92 callersFunction_correct_np_dtype
(xp, dtype, out)
tests/cupyx_tests/scipy_tests/fft_tests/test_fft.py:33
↓ 91 callersMethodmake
(self)
tests/cupyx_tests/scipy_tests/sparse_tests/test_csr.py:508
↓ 91 callersMethodtranspose
Reverses the dimensions of the sparse matrix.
cupyx/scipy/sparse/_base.py:740
↓ 90 callersMethodcopy
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 callersMethodgenerate
(self, *args, **kwargs)
tests/cupy_tests/random_tests/common_distributions.py:71
↓ 81 callersMethodravel
Not supported.
cupyx/distributed/array/_array.py:621
↓ 76 callersFunction_fft_module
(xp)
tests/cupyx_tests/scipy_tests/fft_tests/test_fft.py:23
↓ 76 callersMethodtocsr
Convert this matrix to Compressed Sparse Row format.
cupyx/scipy/sparse/_base.py:720
↓ 75 callersMethodmax
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 callersMethodmake
(self)
tests/cupyx_tests/scipy_tests/sparse_tests/test_csc.py:465
↓ 68 callersFunction_make
(xp, sp, dtype)
tests/cupyx_tests/scipy_tests/sparse_tests/test_coo.py:22
↓ 64 callersFunctionabs
cupy/_core/include/cupy/complex/arithmetic.h:240
↓ 61 callersMethodmean
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 callersMethodastype
(self, dtype, order=None, casting=None, subok=None, copy=True)
cupy/_core/_fusion_interface.py:150
↓ 59 callersMethodimag
cupy/_core/include/cupy/complex/complex.h:194
↓ 59 callersMethodmin
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 callersMethodprod
(self, axis=None, dtype=None, out=None, keepdims=False)
cupy/_core/_fusion_interface.py:168
↓ 59 callersMethodreal
cupy/_core/include/cupy/complex/complex.h:190
↓ 57 callersMethodfill
(x)
tests/cupyx_tests/jit_tests/test_thrust.py:234
↓ 53 callersFunctionfunc
(self)
cupy/testing/_random.py:134
↓ 53 callersMethodrand
Returns uniform random values over the interval ``[0, 1)``. .. seealso:: - :func:`cupy.random.rand` for full documentation
cupy/random/_generator.py:606
↓ 52 callersFunction_make
(xp, sp, dtype)
tests/cupyx_tests/scipy_tests/sparse_tests/test_csr.py:24
↓ 51 callersMethodrepeat
Not supported.
cupyx/distributed/array/_array.py:631
↓ 50 callersFunction_default_fft_func
(a, s=None, axes=None, plan=None, value_type='C2C')
cupy/fft/_fft.py:636
↓ 49 callersMethodsum_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 callersMethodcumsum
Not supported.
cupyx/distributed/array/_array.py:505
↓ 48 callersMethodmalloc
(self, size, device_id)
tests/cupy_tests/cuda_tests/test_memory.py:958
↓ 46 callersMethodtocoo
Convert this matrix to COOrdinate format.
cupyx/scipy/sparse/_base.py:712
↓ 45 callersMethodbegin
(self, env, instance: Data, *args)
cupyx/jit/_cuda_types.py:163
↓ 45 callersMethodend
(self, env, instance: Data, *args)
cupyx/jit/_cuda_types.py:175
↓ 45 callersMethodview
Not supported.
cupyx/distributed/array/_array.py:749
↓ 44 callersMethodargmax
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 callersMethodmultiply
Point-wise multiplication by another matrix
cupyx/scipy/sparse/_base.py:565
↓ 44 callersMethodsearchsorted
Not supported.
cupyx/distributed/array/_array.py:661
↓ 44 callersMethodtocsc
Convert this matrix to Compressed Sparse Column format.
cupyx/scipy/sparse/_base.py:716
↓ 43 callersFunction_assert_exec_policy_type
(exec_policy: _Data)
cupyx/jit/thrust.py:28
↓ 43 callersFunction_assert_same_type
(a: _Data, b: _Data)
cupyx/jit/thrust.py:39
↓ 43 callersFunction_make
(xp, sp, dtype)
tests/cupyx_tests/scipy_tests/sparse_tests/test_csc.py:22
↓ 43 callersMethodrandint
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 callersMethodany
(self, axis=None, out=None, keepdims=False)
cupy/_core/_fusion_interface.py:181
↓ 40 callersMethodcheck_ks
(self, significance_level, cupy_len=100, numpy_len=1000)
tests/cupy_tests/random_tests/common_distributions.py:95
↓ 40 callersMethoduniform
Returns an array of uniformly-distributed samples over an interval. .. seealso:: - :func:`cupy.random.uniform` for full documenta
cupy/random/_generator.py:1006
↓ 39 callersFunctionconvert_hipblasOperation_t
---------- helpers ---------- */
cupy_backends/hip/cupy_hipblas.h:37
↓ 37 callersFunction_assert_pointer_type
(a: _Data)
cupyx/jit/thrust.py:33
↓ 37 callersFunctionany
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 callersFunctionassert_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 callersMethoditem
Not supported.
cupyx/distributed/array/_array.py:540
↓ 37 callersMethodswapaxes
Not supported.
cupyx/distributed/array/_array.py:704
↓ 37 callersMethodunique
(x, size)
tests/cupyx_tests/jit_tests/test_thrust.py:1059
↓ 36 callersMethodany
Not supported.
cupyx/distributed/array/_array.py:450
↓ 36 callersMethodargmin
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 callersMethodtodense
Return a dense matrix representation of this matrix.
cupyx/scipy/sparse/_base.py:724
↓ 34 callersMethodsqueeze
Not supported.
cupyx/distributed/array/_array.py:676
↓ 33 callersMethodindices
(self, xp)
tests/cupyx_tests/scipy_tests/sparse_tests/test_csr.py:353
↓ 32 callersFunctionall
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 callersFunctioncheck_availability
(name)
cupyx/cusparse.py:289
↓ 31 callersMethodcopy
Get a copy of the iterator as a 1-D array.
cupy/_indexing/iterate.py:119
↓ 31 callersMethodprod
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 callersMethodasformat
Return this matrix in a given sparse format. Args: format (str or None): Format you need.
cupyx/scipy/sparse/_base.py:361
↓ 29 callersMethodnonzero
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 callersMethodall
Not supported.
cupyx/distributed/array/_array.py:445
↓ 28 callersMethodargsort
(self, a, axis=-1)
tests/cupy_tests/sorting_tests/test_sort.py:293
↓ 28 callersMethodcheck_distribution
(self, dist_func, dfnum_dtype, dfden_dtype, dtype)
tests/cupy_tests/random_tests/test_distributions.py:147
↓ 27 callersMethod_run
(self, maj, min=None, data=5, density=None)
tests/cupyx_tests/scipy_tests/sparse_tests/test_index.py:45
↓ 27 callersMethodcheck_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 callersMethodmdspan
Not supported.
cupyx/distributed/array/_array.py:564
↓ 26 callersMethodcreate
(cls)
cupyx/cusparse.py:40
↓ 26 callersMethoddiagonal
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 callersFunctionassert_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 callersMethodcount_nonzero
Number of non-zero entries. Subclasses override this; ``_spbase`` itself does not implement a generic counter.
cupyx/scipy/sparse/_base.py:427
↓ 25 callersMethoddtype
(self)
cupy/_core/_fusion_interface.py:185
↓ 25 callersMethodrandn
Returns an array of standard normal random values. .. seealso:: - :func:`cupy.random.randn` for full documentation -
cupy/random/_generator.py:620
↓ 24 callersFunction_make_csr
3x4 CSR with 4 nonzeros.
tests/cupyx_tests/scipy_tests/sparse_tests/test_sparray.py:45
↓ 24 callersFunctionconvert_rocblas_fill
TODO(leofang): perhaps these should be merged with the support of hipBLAS?
cupy_backends/hip/cupy_rocsolver.h:11
↓ 23 callersMethod_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 callersMethodbroadcast
(self, in_out_array, root=0, stream=None)
cupyx/distributed/_comm.py:27
↓ 23 callersMethodbuild
(self, scp, *args, **kwargs)
tests/cupyx_tests/scipy_tests/interpolate_tests/test_rbfinterp.py:544
↓ 23 callersMethodclip
Not supported.
cupyx/distributed/array/_array.py:485
↓ 22 callersFunction_launch_workers
(func, args=(), n_workers=N_WORKERS)
tests/cupyx_tests/distributed_tests/comm_runner.py:24
↓ 22 callersMethoddumps
Not supported.
cupyx/distributed/array/_array.py:525
↓ 22 callersMethodroots
Find real roots of the piecewise polynomial. Parameters ---------- discontinuity : bool, optional Whethe
cupyx/scipy/interpolate/_interpolate.py:1308
↓ 21 callersFunction_check_include
(env, header)
cupyx/jit/cg.py:27
↓ 21 callersMethodchoice
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 callersMethodquery
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