I/O routines
ElemCo.MIO — ModuleEC-specific IO routines
Use to store arrays in a file, and to load them back. Use memory-maps to store and load large arrays.
Exported functions
ElemCo.MIO.mioclosemmap — Methodmioclosemmap(io::IO, array::AbstractArray)Close memory-map file and flush to disk.
ElemCo.MIO.mioload — Methodmioload(fname::String; array_of_arrays = false)Load arrays from a file fname.
Return an array of arrays. If there is only one array - return array itself (unless array_of_arrays is set to true).
ElemCo.MIO.miommap — Methodmiommap(fname::String)Memory-map an existing file for reading. Return a pointer to the file and the mmaped array.
ElemCo.MIO.mionewmmap — Methodmionewmmap(fname::String, Type, dims::Tuple{Vararg{Int}})Create a new memory-map file for writing (overwrites existing file). Return a pointer to the file and the mmaped array.
ElemCo.MIO.miosave — Methodmiosave(fname::String,arrs::AbstractArray{T}...) where TSave arrays arrs in a file fname.