This is a pre-release version (2.5.0.dev0+git20251130.2de293a). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / _core / _multiarray_umath / _array_converter

class

numpy._core._multiarray_umath:_array_converter

source: build-install/usr/lib/python3.14/site-packages/numpy/_core/_multiarray_umath.cpython-314-x86_64-linux-gnu.so

Signature

class   _array_converter ( * array_likes )

Summary

Helper to convert one or more objects to arrays. Integrates machinery to deal with the result_type and __array_wrap__.

Extended Summary

The reason for this is that e.g. result_type needs to convert to arrays to find the dtype. But converting to an array before calling result_type would incorrectly "forget" whether it was a Python int, float, or complex.

Aliases

  • numpy.lib._arraysetops_impl._array_converter