NDArray API#
The multidimensional data array class. This class consists of a set of useful parameters and methods that allow not only to define an array correctly, but also to handle it in a simple way, being able to extract multidimensional slices from it.
Methods#
Get a (multidimensional) slice as specified in key. |
|
Set a slice. |
|
Create a copy of an array with same parameters. |
|
Iterate over |
|
Get a (multidimensional) slice as a new NDArray. |
|
Remove the 1's in array's shape. |
|
Change the shape of the array by growing or shrinking one or more dimensions. |
|
Returns a buffer with the data contents. |
|
Get a bytes object containing the serialized NDArray instance. |
Attributes#
The number of dimensions of this container. |
|
The data shape of this container. |
|
The padded data shape. |
|
The data chunk shape of this container. |
|
The padded chunk shape which defines the chunksize in the associated schunk. |
|
The block shape of this container. |
|
The block size (in bytes) for this container. |
|
The data chunk size (in bytes) for this container. |
|
Data-type of the array’s elements. |
|
Print information about this array. |
|
The size (in bytes) for this container. |
Constructors#
Convert the array to an NDArray. |
|
This is equivalent to |
|
Create an empty array. |
|
Create an array out of a buffer. |
|
Create an array, with |
|
Create an array with NaNs values. |
|
Create a NDArray instance out of a contiguous frame buffer. |
|
Create an array with uninitialized values. |
|
Create an array, with zero being used as the default value for uninitialized portions of the array. |
Functions#
Trigonometric sine, element-wise. |
|
Trigonometric cosine, element-wise. |
|
Trigonometric tangent, element-wise. |
|
Hyperbolic sine, element-wise. |
|
Hyperbolic cosine, element-wise. |
|
Hyperbolic tangent, element-wise. |
|
Inverse sine, element-wise. |
|
Trigonometric inverse cosine, element-wise. |
|
Trigonometric inverse tangent, element-wise. |
|
Element-wise arc tangent of |
|
Inverse hyperbolic sine, element-wise. |
|
Inverse hyperbolic cosine, element-wise. |
|
Inverse hyperbolic tangent, element-wise. |
|
Calculate the exponential of all elements in the input array. |
|
Calculate |
|
Natural logarithm, element-wise. |
|
Return the base 10 logarithm of the input array, element-wise. |
|
Return the natural logarithm of one plus the input array, element-wise. |
|
Return the non-negative square-root of an array, element-wise. |
|
Return the complex conjugate, element-wise. |
|
Return the real part of the complex array, element-wise. |
|
Return the imaginary part of the complex array, element-wise. |
|
Check if the array contains a string value. |
|
Calculate the absolute value element-wise. |