Function trx::_create_memmap

Function Documentation

mio::shared_mmap_sink trx::_create_memmap(std::string filename, const std::tuple<int, int> &shape, const std::string &mode = "r", const std::string &dtype = "float32", long long offset = 0)

Wrapper to support empty array as memmaps.

Parameters:
  • filename – filename of the file where the empty memmap should be created

  • shape – shape of memmapped NDArray

  • mode – file open mode

  • dtype – datatype of memmapped NDArray

  • offset – offset of the data within the file

Returns:

mio::shared_mmap_sink