ArrayIO

Read and write arrays of different implementations to disk.

Interface

bool writeArray(const Array<T, N, Aux> &array,
		const std::string fileName,
		const bool compress = false);
Write a 3D array to a file named fileName. If compress is true, a scheme will be used that represents the array as ranges, which, if there are many continuous ranges, will result in a smaller file size.
bool readArray( Array<T, N, Aux> &array,
		const std::string fileName);
Read a 3D array from a file named fileName. Compressed files will be automatically detected. The array should preferably be of the same type as was used to write the file.