MCPcopy Create free account
hub / github.com/numpy/numpy / scalar

Method scalar

numpy/core/tests/test_deprecations.py:719–720  ·  view source on GitHub ↗
(value, dtype)

Source from the content-addressed store, hash-verified

717 # Cover the most common creation paths (all end up in the
718 # same place):
719 def scalar(value, dtype):
720 dtype.type(value)
721
722 def assign(value, dtype):
723 arr = np.array([0, 0, 0], dtype=dtype)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected