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#
Retrieve a (multidimensional) slice as specified by the key. |
|
Set a slice of the array. |
|
Create a copy of an array with same parameters. |
|
Shortcut to |
|
Iterate over |
|
Get a (multidimensional) slice as a new NDArray. |
|
Remove single-dimensional entries from the shape of the array. |
|
Change the shape of the array by growing or shrinking one or more dimensions. |
|
Returns a buffer containing the data of the entire array. |
|
Get a bytes object containing the serialized NDArray instance. |
Attributes#
The number of dimensions of this container. |
|
Returns the data shape of this container. |
|
The padded data shape. |
|
Returns the data chunk shape of this container. |
|
Returns 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. |
|
Returns the data chunk size (in bytes) for this container. |
|
Data-type of the array's elements. |
|
Dictionary with the fields of the structured array. |
|
Indicates whether the last read data should be kept in memory. |
|
Print information about this array. |
|
The size (in bytes) for this container. |
|
The compression parameters used by the array. |
|
The decompression parameters used by the array. |
|
The URL path of the array. |
|
The variable-length metadata of the array. |
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 from a contiguous frame buffer. |
|
Create an array with uninitialized values. |
|
Create an array with zero as the default value for uninitialized portions of the array. |