NDArray#
The multidimensional data array class. This class consists of a set of useful parameters and methods that allow not only to create an array correctly, but also to being able to extract multidimensional slices from it (and much more).
Methods#
Get a (multidimensional) slice as specified in key. |
|
Set a slice. |
|
Create a copy of an array with same parameters. |
|
Shortcut to |
|
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. |
|
Dictionary with the fields of the structured array. |
|
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. |