48 lines
973 B
Python
48 lines
973 B
Python
|
import numpy as np
|
||
|
|
||
|
np.maximum_sctype("S8")
|
||
|
np.maximum_sctype(object)
|
||
|
|
||
|
np.issctype(object)
|
||
|
np.issctype("S8")
|
||
|
|
||
|
np.obj2sctype(list)
|
||
|
np.obj2sctype(list, default=None)
|
||
|
np.obj2sctype(list, default=np.string_)
|
||
|
|
||
|
np.issubclass_(np.int32, int)
|
||
|
np.issubclass_(np.float64, float)
|
||
|
np.issubclass_(np.float64, (int, float))
|
||
|
|
||
|
np.issubsctype("int64", int)
|
||
|
np.issubsctype(np.array([1]), np.array([1]))
|
||
|
|
||
|
np.issubdtype("S1", np.string_)
|
||
|
np.issubdtype(np.float64, np.float32)
|
||
|
|
||
|
np.sctype2char("S1")
|
||
|
np.sctype2char(list)
|
||
|
|
||
|
np.find_common_type([], [np.int64, np.float32, complex])
|
||
|
np.find_common_type((), (np.int64, np.float32, complex))
|
||
|
np.find_common_type([np.int64, np.float32], [])
|
||
|
np.find_common_type([np.float32], [np.int64, np.float64])
|
||
|
|
||
|
np.cast[int]
|
||
|
np.cast["i8"]
|
||
|
np.cast[np.int64]
|
||
|
|
||
|
np.nbytes[int]
|
||
|
np.nbytes["i8"]
|
||
|
np.nbytes[np.int64]
|
||
|
|
||
|
np.ScalarType
|
||
|
np.ScalarType[0]
|
||
|
np.ScalarType[3]
|
||
|
np.ScalarType[8]
|
||
|
np.ScalarType[10]
|
||
|
|
||
|
np.typecodes["Character"]
|
||
|
np.typecodes["Complex"]
|
||
|
np.typecodes["All"]
|