Home
last modified time | relevance | path

Searched refs:__array__ (Results 1 – 25 of 268) sorted by relevance

1234567891011

/dports/math/py-pandas/pandas-1.2.5/pandas/tests/arrays/categorical/
H A Dtest_sorting.py51 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 Dtest_api.py63 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 Darray_like.py21 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 D03_07_init_lists.qbk19 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 D03_03_array.qbk14 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 D05_02_serializing.qbk25 __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 DLogger.cpp41 #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 Darray_like.py14 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 DIterator.pm25 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.py22 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 Dnep-0030-duck-array-protocol.rst72 ``__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 Dtest_sort_values.py102 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 Dtest_cat_accessor.py132 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 Dutils.py112 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 Dnacl_macros.h90 char __array__[NACL_ARRAY_SIZE(array)]; \
91 if (0 == sizeof __array__) { \
/dports/math/py-numpy/numpy-1.20.3/doc/source/user/
H A Dbasics.dispatch.rst25 ... 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 Dframe_stack.py34 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 Dtest_testing.py151 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.py116 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 Dnetref.py252 def __array__(self): function
256 __array__.__doc__ = doc
257 return __array__
/dports/math/py-numpy/numpy-1.20.3/numpy/ma/tests/
H A Dtest_subclassing.py98 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 Dtest_generator_mt19937_regressions.py135 def __array__(self): member in TestRegression.test_permutation_subclass.M
142 assert_array_equal(m.__array__(), np.arange(5))
H A Dtest_regression.py142 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 Dindexing.py342 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 Darrayproxy.py52 def __array__(self): member in ArrayProxy

1234567891011