bundles / numpy 2.5.0.dev0+git20251130.2de293a / numpy / _core / multiarray / scalar
built-in
numpy._core.multiarray:scalar
Signature
built-in
scalar ( dtype , obj ) Summary
Return a new scalar array of the given type initialized with obj.
Extended Summary
This function is meant mainly for pickle support. dtype must be a valid data-type descriptor. If dtype corresponds to an object descriptor, then obj can be any object, otherwise obj must be a string. If obj is not given, it will be interpreted as None for object type and as zeros for all other types.
Aliases
-
numpy._core._multiarray_umath.scalar