19 #ifndef ALEXANDRIA_NDARRAY_IO_NPYMMAP_H
20 #define ALEXANDRIA_NDARRAY_IO_NPYMMAP_H
23 #include <boost/filesystem/path.hpp>
24 #include <boost/iostreams/device/mapped_file.hpp>
49 NdArray<T>
mmapNpy(
const boost::filesystem::path&
path,
50 boost::iostreams::mapped_file_base::mapmode mode = boost::iostreams::mapped_file_base::readwrite,
87 return createMmapNpy<T>(path, shape, {}, max_size);
97 #endif // ALEXANDRIA_NDARRAY_IO_NPYMMAP_H
NdArray< T > mmapNpy(const boost::filesystem::path &path, boost::iostreams::mapped_file_base::mapmode mode=boost::iostreams::mapped_file_base::readwrite, size_t max_size=0)
NdArray< T > createMmapNpy(const boost::filesystem::path &path, const std::vector< size_t > &shape, const std::vector< std::string > &attr_names, size_t max_size=0)