杂项(Miscellaneous routines)
性能调优
| method | description |
|---|---|
| setbufsize(size) | 设置用于ufuncs的缓冲区的大小。 |
| getbufsize() | 返回用于ufuncs的缓冲区的大小。 |
内存区间
| method | description |
|---|---|
| shares_memory(a, b[, max_work]) | 确定两个阵列是否共享内存 |
| may_share_memory(a, b[, max_work]) | 确定两个阵列是否可以共享内存 |
| byte_bounds(a) | 返回指向数组端点的指针。 |
数组Mixin
| method | description |
|---|---|
| lib.mixins.NDArrayOperatorsMixin | Mixin使用__array_ufunc__定义所有运算符的特殊方法。 |
NumPy版本比较
| method | description |
|---|---|
| lib.NumpyVersion(vstring) | 解析并比较numpy版本字符串。 |
效用
| method | description |
|---|---|
| get_include() | 返回包含NumPy * .h头文件的目录。 |
| deprecate(*args, **kwargs) | 发出DeprecationWarning,向old_name的文档字符串添加警告,重新绑定old_name .__ name__并返回新的函数对象。 |
| deprecate_with_doc(msg) |
类Matlab函数
| method | description |
|---|---|
| who([vardict]) | 在给定的字典中打印NumPy数组。 |
| disp(mesg[, device, linefeed]) | 在设备上显示消息。 |