Home
last modified time | relevance | path

Searched refs:__array_wrap__ (Results 1 – 25 of 72) sorted by relevance

123

/dports/databases/grass7/grass-7.8.6/lib/python/pygrass/raster/
H A Dbuffer.py45 def __array_wrap__(self, out_arr, context=None): member in Buffer
53 return np.ndarray.__array_wrap__(self, out_arr, context)
/dports/math/py-numpy/numpy-1.20.3/doc/source/user/
H A Dbasics.subclassing.rst563 ``__array_wrap__`` for ufuncs and other functions
567 ``__array_wrap__`` and ``__array_prepare__``. These two allowed one to
574 Conceptually, ``__array_wrap__`` "wraps up the action" in the sense of
598 def __array_wrap__(self, out_arr, context=None):
599 print('In __array_wrap__:')
613 In __array_wrap__:
626 of the addition. In turn, the default ``__array_wrap__``
637 def __array_wrap__(self, arr, context=None):
647 So, by defining a specific ``__array_wrap__`` method for our subclass,
648 we can tweak the output from ufuncs. The ``__array_wrap__`` method
[all …]
/dports/math/py-numpy/numpy-1.20.3/numpy/core/
H A Dmemmap.py318 def __array_wrap__(self, arr, context=None): member in memmap
319 arr = super(memmap, self).__array_wrap__(arr, context)
/dports/science/lammps/lammps-stable_29Sep2021/tools/i-pi/ipi/utils/
H A Ddepend.py468 def __array_wrap__(self, arr, context=None): member in depend_array
475 return np.ndarray.__array_wrap__(self.view(np.ndarray),arr.view(np.ndarray),context)
477 return super(depend_array,self).__array_wrap__(arr,context)
479 return np.ndarray.__array_wrap__(self.view(np.ndarray),arr.view(np.ndarray),context)
/dports/devel/py-dask/dask-2021.11.2/dask/array/
H A Dufunc.py19 def __array_wrap__(numpy_ufunc, x, *args, **kwargs): function
20 return x.__array_wrap__(numpy_ufunc(x, *args, **kwargs))
35 return dsk[0]._elemwise(__array_wrap__, numpy_ufunc, *args, **kwargs)
300 return x._elemwise(__array_wrap__, np.angle, x, deg)
/dports/misc/orange3/orange3-3.29.1/Orange/misc/
H A Ddistmatrix.py50 def __array_wrap__(self, out_arr, context=None): member in DistMatrix
53 return np.ndarray.__array_wrap__(self, out_arr, context)
/dports/math/py-cvxpy/cvxpy-1.1.17/examples/advanced/
H A Dtest.py91 def __array_wrap__(self): member in Bar1
/dports/math/py-numpy/numpy-1.20.3/numpy/lib/
H A Dshape_base.py406 buff = res.__array_wrap__(buff)
414 return res.__array_wrap__(out_arr)
1056 x.__array_wrap__) for i, x in enumerate(args)
H A Dtwodim_base.py342 wrap = v.__array_wrap__
H A Darraysetops.py116 result = ary.__array_wrap__(result)
H A Duser_array.py248 def __array_wrap__(self, *args): member in container
/dports/math/py-numpy/numpy-1.20.3/doc/source/release/
H A D1.12.1-notes.rst20 * BUG: Fix undefined behaviour induced by bad __array_wrap__
/dports/astro/py-astropy/astropy-5.0/astropy/stats/
H A Dsigma_clipping.py56 return array.__array_wrap__(bottleneck.nanmean(array, axis=axis))
69 return array.__array_wrap__(bottleneck.nanmedian(array, axis=axis))
82 return array.__array_wrap__(bottleneck.nanstd(array, axis=axis,
H A Dfuncs.py846 data_median = data.__array_wrap__(data_median)
857 result = data.__array_wrap__(result)
/dports/math/py-matplotlib2/matplotlib-2.2.4/examples/units/
H A Dbasic_units.py155 def __array_wrap__(self, array, context): member in TaggedValue
221 def __array_wrap__(self, array, context): member in BasicUnit
/dports/math/py-matplotlib2/matplotlib-2.2.4/lib/mpl_examples/units/
H A Dbasic_units.py155 def __array_wrap__(self, array, context): member in TaggedValue
221 def __array_wrap__(self, array, context): member in BasicUnit
/dports/math/py-matplotlib/matplotlib-3.4.3/examples/units/
H A Dbasic_units.py146 def __array_wrap__(self, array, context): member in TaggedValue
219 def __array_wrap__(self, array, context): member in BasicUnit
/dports/math/py-numpy/numpy-1.20.3/doc/changelog/
H A D1.12.1-changelog.rst33 …://github.com/numpy/numpy/pull/8618>`__: BUG: Fix undefined behaviour induced by bad __array_wrap__
/dports/math/py-numpy/numpy-1.20.3/numpy/lib/tests/
H A Dtest_ufunclike.py60 def __array_wrap__(self, obj, context=None): member in TestUfunclike.test_fix_with_subclass.MyArray
/dports/math/py-numpy/numpy-1.20.3/numpy/ma/tests/
H A Dtest_subclassing.py145 def __array_wrap__(self, obj, context=None): member in ComplicatedSubArray
146 obj = super(ComplicatedSubArray, self).__array_wrap__(obj, context)
/dports/science/py-paramz/paramz-0.9.5/paramz/core/
H A Dobservable_array.py75 def __array_wrap__(self, out_arr, context=None): member in ObsAr
/dports/astro/py-astropy/astropy-5.0/astropy/convolution/
H A Dcore.py174 def __array_wrap__(self, array, context=None): member in Kernel
/dports/math/py-spectral/spectral-0.22.4/spectral/
H A Dimage.py200 def __array_wrap__(self, out_arr, context=None): member in ImageArray
/dports/biology/py-biopython/biopython-1.79/Bio/Align/substitution_matrices/
H A D__init__.py182 def __array_wrap__(self, out_arr, context=None): member in Array
185 return numpy.ndarray.__array_wrap__(self, out_arr, context)
/dports/science/py-pymatgen/pymatgen-2022.0.15/pymatgen/core/
H A Dtensors.py85 def __array_wrap__(self, obj): member in Tensor
93 return np.ndarray.__array_wrap__(self, obj)

123