Template Function trx::_initialize_empty_trx

Function Documentation

template<typename DT>
std::unique_ptr<TrxFile<DT>> trx::_initialize_empty_trx(int nb_streamlines, int nb_vertices, const TrxFile<DT> *init_as = nullptr)

Create on-disk memmaps of a certain size (preallocation)

An empty TrxFile preallocated with a certain size

Parameters:
  • nb_streamlines – The number of streamlines that the empty TrxFile will be initialized with

  • nb_vertices – The number of vertices that the empty TrxFile will be initialized with

  • init_as – A TrxFile to initialize the empty TrxFile with

Returns:

TrxFile