Miscellaneous routines

Performance tuning

method description
setbufsize(size) Set the size of the buffer used in ufuncs.
getbufsize() Return the size of the buffer used in ufuncs.

Memory ranges

method description
shares_memory(a, b[, max_work]) Determine if two arrays share memory
may_share_memory(a, b[, max_work]) Determine if two arrays might share memory
byte_bounds(a) Returns pointers to the end-points of an array.

Array mixins

method description
lib.mixins.NDArrayOperatorsMixin Mixin defining all operator special methods using array_ufunc.

NumPy version comparison

method description
lib.NumpyVersion(vstring) Parse and compare numpy version strings.

Utility

method description
get_include() Return the directory that contains the NumPy *.h header files.
deprecate(*args, **kwargs) Issues a DeprecationWarning, adds warning to old_name’s docstring, rebinds old_name.name and returns the new function object.
deprecate_with_doc(msg)

Matlab-like Functions

method description
who([vardict]) Print the NumPy arrays in the given dictionary.
disp(mesg[, device, linefeed]) Display a message on a device.
评论系统加载中...🚀