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. |
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. |
|
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 uninitialized values. |
|
Create an array, with zero being used as the default value for uninitialized portions of the array. |