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>
52 boost::iostreams::mapped_file_base::mapmode mode = boost::iostreams::mapped_file_base::readwrite,
89 return createMmapNpy<T>(path, shape, {}, max_size);
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)