NDArray#
The multidimensional data array class.
Methods#
Iterate over the (outer) elements of the array. |
|
Retrieve a (multidimensional) slice as specified by the key. |
|
Set a slice of the array. |
|
Create a copy of an array with different parameters. |
|
Shortcut to |
|
Return the indices of a sorted array following the specified order. |
|
Iterate over |
|
Return a new array with the specified shape. |
|
Change the shape of the array by growing or shrinking one or more dimensions. |
|
Save the array to a file. |
|
Get a (multidimensional) slice as a new NDArray. |
|
Return a sorted array following the specified order, or the order of the fields. |
|
Remove single-dimensional entries from the shape of the array. |
|
Returns a buffer containing the data of the entire array. |
|
Get a bytes object containing the serialized NDArray instance. |
In addition, all the functions from the Lazy Functions section can be used with NDArray instances.
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 a new array from an iterable object. |
|
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. |
|
Create an array with one as values. |
|
Create an array, with |
|
Return evenly spaced values within a given interval. |
|
Return evenly spaced numbers over a specified interval. |
|
Return a 2-D array with ones on the diagonal and zeros elsewhere. |
|
Returns an array containing the same data with a new shape. |