Skip to content

杂项(Miscellaneous routines)

性能调优

methoddescription
setbufsize(size)设置用于ufuncs的缓冲区的大小。
getbufsize()返回用于ufuncs的缓冲区的大小。

内存区间

methoddescription
shares_memory(a, b[, max_work])确定两个阵列是否共享内存
may_share_memory(a, b[, max_work])确定两个阵列是否可以共享内存
byte_bounds(a)返回指向数组端点的指针。

数组Mixin

methoddescription
lib.mixins.NDArrayOperatorsMixinMixin使用__array_ufunc__定义所有运算符的特殊方法。

NumPy版本比较

methoddescription
lib.NumpyVersion(vstring)解析并比较numpy版本字符串。

效用

methoddescription
get_include()返回包含NumPy * .h头文件的目录。
deprecate(*args, **kwargs)发出DeprecationWarning,向old_name的文档字符串添加警告,重新绑定old_name .__ name__并返回新的函数对象。
deprecate_with_doc(msg)

类Matlab函数

methoddescription
who([vardict])在给定的字典中打印NumPy数组。
disp(mesg[, device, linefeed])在设备上显示消息。

基于 MIT 许可发布 共建 共享 共管