xsimlab.validators.is_subdtype

xsimlab.validators.is_subdtype(dtype)

A validator that raises a TypeError if a given array has a wrong dtype.

Parameters

dtype (dtype_like) – dtype or string representing the typecode of the highest type allowed in the hierarchy.