Expand description
Functionality for .npy files.
Most of this functionality is reexported at the top level of the crate.
Modules§
- header
- Types and methods for (de)serializing the header of an
.npyfile.
Enums§
- Read
Data Error - An error reading array data.
- Read
NpyError - An error reading a
.npyfile. - View
Data Error - An error viewing array data.
- View
NpyError - An error viewing a
.npyfile. - Write
Data Error - An error writing array data.
- Write
NpyError - An error writing a
.npyfile.
Traits§
- Read
NpyExt - Extension trait for reading
Arrayfrom.npyfiles. - Readable
Element - An array element type that can be read from an
.npyor.npzfile. - View
Element - An array element type that can be viewed (without copying) in an
.npyfile. - View
MutElement - An array element type that can be mutably viewed (without copying) in an
.npyfile. - View
MutNpy Ext - Extension trait for creating an
ArrayViewMutfrom a mutable buffer containing an.npyfile. - View
NpyExt - Extension trait for creating an
ArrayViewfrom a buffer containing an.npyfile. - Writable
Element - An array element type that can be written to an
.npyor.npzfile. - Write
NpyExt - Extension trait for writing
ArrayBaseto.npyfiles.
Functions§
- create_
new_ npy - Writes an array to a new
.npyfile at the specified path; error if the file exists. - read_
npy - Read an
.npyfile located at the specified path. - write_
npy - Writes an array to an
.npyfile at the specified path. - write_
zeroed_ npy - Writes an
.npyfile (sparse if possible) with bitwise-zero-filled data.