原文:https://docs.scipy.org/doc/numpy/reference/routines.dtype.html
校对:(虚位以待)
can_cast(from,totype,casting =) |
返回True如果根据转换规则可以在数据类型之间进行转换,则返回True。 |
promote_types(type1,type2) |
返回type1和type2可以安全转换的最小尺寸和最小标量类型的数据类型。 |
min_scalar_type(a) |
对于标量a,返回具有最小大小和最小标量种类的数据类型,它可以保存其值。 |
result_type(\ * arrays_and_dtypes) |
返回将NumPy类型升级规则应用于参数所产生的类型。 |
common_type(\ * arrays) |
返回输入数组常见的标量类型。 |
obj2sctype(rep [,default]) |
返回对象的Python类型的标量dtype或NumPy等价物。 |
dtype |
创建数据类型对象。 |
format_parser(formats,names,titles [,...]) |
类将格式,名称,标题描述转换为dtype。 |
finfo |
浮点类型的机器限制。 |
iinfo(type) |
整数类型的机器限制。 |
MachAr([float_conv,int_conv,...]) |
诊断机器参数。 |
issctype(rep) |
确定给定对象是否表示标量数据类型。 |
issubdtype(arg1,arg2) |
返回True如果第一个参数是类型层次结构中的类型代码较低/相等。 |
issubsctype(arg1,arg2) |
确定第一个参数是否是第二个参数的子类。 |
issubclass_(arg1,arg2) |
确定类是否是第二个类的子类。 |
find_common_type(array_types,scalar_types) |
遵循标准强制规则确定通用类型。 |
typename(char) |
返回给定数据类型代码的描述。 |
sctype2char(sctype) |
返回标量dtype的字符串表示形式。 |
mintypecode(typechars [,typeset,default]) |
返回可以安全地转换给定类型的最小大小类型的字符。 |