/dports/math/py-pandas/pandas-1.2.5/pandas/tests/arrays/categorical/ |
H A D | test_sorting.py | 51 tm.assert_numpy_array_equal(res.__array__(), exp) 59 tm.assert_numpy_array_equal(res.__array__(), exp) 64 tm.assert_numpy_array_equal(res.__array__(), exp) 73 tm.assert_numpy_array_equal(cat1.__array__(), exp) 81 tm.assert_numpy_array_equal(res.__array__(), exp_val) 91 tm.assert_numpy_array_equal(res.__array__(), exp) 96 tm.assert_numpy_array_equal(res.__array__(), exp) 101 tm.assert_numpy_array_equal(res.__array__(), exp) 106 tm.assert_numpy_array_equal(res.__array__(), exp) 111 tm.assert_numpy_array_equal(res.__array__(), exp) [all …]
|
H A D | test_api.py | 63 res.__array__(), np.array([1, 2, 3, 1], dtype=np.int64) 68 tm.assert_numpy_array_equal(cat.__array__(), exp_cat) 82 cat.__array__(), np.array([1, 2, 3, 1], dtype=np.int64) 216 tm.assert_numpy_array_equal(cat.__array__(), exp_values) 222 tm.assert_numpy_array_equal(cat.__array__(), exp_values) 226 tm.assert_numpy_array_equal(res.__array__(), exp_values)
|
/dports/math/py-numpy/numpy-1.20.3/numpy/typing/tests/data/pass/ |
H A D | array_like.py | 21 def __array__(self, dtype: DTypeLike = None) -> np.ndarray: member in A 28 scalar.__array__(np.float64) 30 array.__array__(np.float64) 33 a.__array__(np.int64) 34 a.__array__(dtype=np.int64)
|
/dports/devel/hyperscan/boost_1_75_0/libs/json/doc/qbk/ |
H A D | 03_07_init_lists.qbk | 19 Simple initializer lists produce an __array__: 30 it represents an __array__ or an __object__: 37 Otherwise, it is interpreted as an __array__. 46 assign an __object__ or __array__: 61 __object__ or __array__ when initializing such an entity only 78 __array__, or __value__ constructed from an initializer list
|
H A D | 03_03_array.qbk | 14 A __value__ stores an instance of __array__ as the underlying representation 15 for a JSON array. Instances of the __array__ type function identically to 44 types, see the reference page for __array__. 48 When an __array__ is formatted to a __std_ostream__, the result is a valid
|
H A D | 05_02_serializing.qbk | 25 __value__, __array__, __object__, or __string__ 33 __value__, __array__, __object__, or __string__. 40 __value__, __array__, __object__, or __string__.
|
/dports/audio/kwave/kwave-21.12.3/libkwave/ |
H A D | Logger.cpp | 41 #define ELEMENTS_OF(__array__) (sizeof(__array__) / sizeof(__array__[0])) argument
|
/dports/math/py-numpy/numpy-1.20.3/numpy/typing/tests/data/fail/ |
H A D | array_like.py | 14 scalar.__array__(dtype=np.float64) # E: Unexpected keyword argument 16 array.__array__(dtype=np.float64) # E: Unexpected keyword argument
|
/dports/devel/p5-Array-Iterator/Array-Iterator-0.131/lib/Array/ |
H A D | Iterator.pm | 25 unless exists $array[0]->{__array__}; 27 unless ref $array[0]->{__array__} eq 'ARRAY'; 28 $_array = $array[0]->{__array__};
|
/dports/math/py-numpy/numpy-1.20.3/numpy/typing/ |
H A D | _array_like.py | 22 def __array__(self, __dtype: DTypeLike = ...) -> ndarray: ... member in _SupportsArray 24 def __array__(self, dtype: DTypeLike = ...) -> ndarray: ... member in _SupportsArray
|
/dports/math/py-numpy/numpy-1.20.3/doc/neps/ |
H A D | nep-0030-duck-array-protocol.rst | 72 ``__array__`` method raises ``TypeError``. Alternatively, the ``__array__`` 97 def __array__(self): 103 original object, and an ``__array__`` method that either creates and returns an 106 object that does not implement ``__array__``, it will create a NumPy array 109 In case of existing libraries that don't already implement ``__array__`` but 111 both ``__array__`` and``__duckarray__`` methods.
|
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/series/methods/ |
H A D | test_sort_values.py | 102 tm.assert_numpy_array_equal(res.__array__(), exp) 111 tm.assert_numpy_array_equal(res.__array__(), exp) 115 tm.assert_numpy_array_equal(res.__array__(), exp) 131 tm.assert_numpy_array_equal(res["sort"].values.__array__(), exp)
|
/dports/math/py-pandas/pandas-1.2.5/pandas/tests/series/accessors/ |
H A D | test_cat_accessor.py | 132 tm.assert_numpy_array_equal(ser.values.__array__(), exp_values) 133 tm.assert_numpy_array_equal(ser.__array__(), exp_values) 141 tm.assert_numpy_array_equal(ser.values.__array__(), exp_values) 142 tm.assert_numpy_array_equal(ser.__array__(), exp_values)
|
/dports/graphics/py-pyproj/pyproj-3.2.1/pyproj/ |
H A D | utils.py | 112 if hasattr(xxx, "__array__") and callable(xxx.__array__): 113 xxx = xxx.__array__()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/native_client/src/include/ |
H A D | nacl_macros.h | 90 char __array__[NACL_ARRAY_SIZE(array)]; \ 91 if (0 == sizeof __array__) { \
|
/dports/math/py-numpy/numpy-1.20.3/doc/source/user/ |
H A D | basics.dispatch.rst | 25 ... def __array__(self): 35 :func:`numpy.asarray`, which will call its ``__array__`` method to obtain a 46 ``__array__`` interface to convert it to an array and then apply the function 87 ... def __array__(self): 136 ... def __array__(self): 174 ... def __array__(self):
|
/dports/math/py-gym/gym-0.21.0/gym/wrappers/ |
H A D | frame_stack.py | 34 def __array__(self, dtype=None): member in LazyFrames 51 return self.__array__() == other
|
/dports/devel/py-xarray/xarray-0.20.1/xarray/tests/ |
H A D | test_testing.py | 151 def __array__(self): member in test_ensure_warnings_not_elevated.WarningVariable 153 return super().__array__()
|
/dports/graphics/py-scikit-image/scikit-image-0.19.0/skimage/util/ |
H A D | _map_array.py | 116 def __array__(self, dtype=None): member in ArrayMap 184 self._array = self.__array__()
|
/dports/devel/py-RPyC/rpyc-5.0.1/rpyc/core/ |
H A D | netref.py | 252 def __array__(self): function 256 __array__.__doc__ = doc 257 return __array__
|
/dports/math/py-numpy/numpy-1.20.3/numpy/ma/tests/ |
H A D | test_subclassing.py | 98 out = out.__array__() 106 return next(self._dataiter).__array__().view(type(self._original)) 133 value = value.__array__().view(ComplicatedSubArray) 199 xmx = masked_array(mx.data.__array__(), mask=mx.mask)
|
/dports/math/py-numpy/numpy-1.20.3/numpy/random/tests/ |
H A D | test_generator_mt19937_regressions.py | 135 def __array__(self): member in TestRegression.test_permutation_subclass.M 142 assert_array_equal(m.__array__(), np.arange(5))
|
H A D | test_regression.py | 142 def __array__(self): member in TestRegression.test_permutation_subclass.M 149 assert_array_equal(m.__array__(), np.arange(5))
|
/dports/devel/py-xarray/xarray-0.20.1/xarray/core/ |
H A D | indexing.py | 342 def __array__(self, dtype=None): member in ExplicitlyIndexedNDArrayMixin 356 def __array__(self, dtype=None): member in ImplicitToExplicitIndexingAdapter 420 def __array__(self, dtype=None): member in LazilyIndexedArray 473 def __array__(self, dtype=None): member in LazilyVectorizedIndexedArray 520 def __array__(self, dtype=None): member in CopyOnWriteArray 550 def __array__(self, dtype=None): member in MemoryCachedArray 1291 def __array__(self, dtype: DTypeLike = None) -> np.ndarray: member in PandasIndexingAdapter 1390 def __array__(self, dtype: DTypeLike = None) -> np.ndarray: member in PandasMultiIndexingAdapter 1394 return super().__array__(dtype)
|
/dports/science/afni/afni-AFNI_21.3.16/src/pkundu/meica.libs/nibabel/ |
H A D | arrayproxy.py | 52 def __array__(self): member in ArrayProxy
|