Importing & Exporting Array Data
This section deals with functions for importing data into and exporting data from ILNumerics arrays. Import and export of array elements is important for convenient creation of arrays and for interacting with external, managed and unmanged APIs.
Importing System.Array, T[]
In order to import data from system arrays
Note that ILNumerics will make a copy of the values from the System.Array provided and will not reference the original elements afterwards.
Exporting System.Array, T[]
The array member function
The ExportValues(ref T[], StorageOrders order) overload allows to control the order of the elements for export.
Data Exchange File Formats
ILNumerics offers many ways to exchange data with other applications and APIs. Next to the common options provided by the .NET framework (text / csv, XML, binary streams, etc.) ILNumerics provides the following options to read/write numeric data:
ILMath.csvread<T>(), ILMath.csvwrite<T>()
- ILNumerics.MatFile class for handling Matlab *.mat files
- HDF5 as general data exchange format
The Data I/O section details these options.
Further readings: