{ } Raw JSON

bundles / scipy 1.17.1 / scipy / special / _basic / _is_subdtype

function

scipy.special._basic:_is_subdtype

source: /scipy/special/_basic.py :2815

Signature

def   _is_subdtype ( dtype dtypes )

Summary

Shorthand for calculating whether dtype is subtype of some dtypes.

Extended Summary

Also allows specifying a list instead of just a single dtype.

Additionaly, the most important supertypes from

https://numpy.org/doc/stable/reference/arrays.scalars.html

can optionally be specified using abbreviations as follows:

"i": np.integer "f": np.floating "c": np.complexfloating "n": np.number (contains the other three)

Aliases

  • scipy.special._basic._is_subdtype