You are viewing an older version (2.4.3). Go to latest (2.4.4)
{ } Raw JSON

bundles / numpy 2.4.3 / 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