Miscellaneous routines#
Performance tuning#
|
Set the size of the buffer used in ufuncs. |
Return the size of the buffer used in ufuncs. |
Memory ranges#
|
Determine if two arrays share memory. |
|
Determine if two arrays might share memory |
|
Returns pointers to the end-points of an array. |
Array mixins#
Mixin defining all operator special methods using __array_ufunc__. |
NumPy version comparison#
|
Parse and compare numpy version strings. |
Utility#
Return the directory that contains the NumPy *.h header files. |
|
|
Show libraries and system information on which NumPy was built and is being used |
Print information about various resources in the system including available intrinsic support and BLAS/LAPACK library in use |
|
|
Issues a DeprecationWarning, adds warning to old_name's docstring, rebinds |
|
Deprecates a function and includes the deprecation in its docstring. |
|
Broadcast the input shapes into a single shape. |
Matlab-like Functions#
|
Print the NumPy arrays in the given dictionary. |
|
Display a message on a device. |
Exceptions and Warnings (numpy.exceptions
)#
General exceptions used by NumPy. Note that some exceptions may be module specific, such as linear algebra errors.
New in version NumPy: 1.25
The exceptions module is new in NumPy 1.25. Older exceptions remain available through the main NumPy namespace for compatibility.
Warnings#
The warning raised when casting a complex dtype to a real dtype. |
|
Visible deprecation warning. |
Exceptions#
|
Axis supplied was invalid. |
Multiple DTypes could not be converted to a common one. |
|
max_work was exceeded. |
DType classes and utility (numpy.dtypes
)#
This module is home to specific dtypes related functionality and their classes.
For more general information about dtypes, also see numpy.dtype
and
Data type objects (dtype).
Similar to the builtin types
module, this submodule defines types (classes)
that are not widely used directly.
New in version NumPy: 1.25
The dtypes module is new in NumPy 1.25. Previously DType classes were only accessible indirectly.
DType classes#
The following are the classes of the corresponding NumPy dtype instances and
NumPy scalar types. The classes can be used in isinstance
checks and can
also be instantiated or used directly. Direct use of these classes is not
typical, since their scalar counterparts (e.g. np.float64
) or strings
like "float64"
can be used.
Group |
DType class |
---|---|
Boolean |
|
Bit-sized integers |
|
C-named integers (may be aliases) |
|
Floating point |
|
Complex |
|
Strings |
|
Times |
|
Others |
|