Function amici::hdf5::createAndWriteDouble2DDataset

Function Documentation

void amici::hdf5::createAndWriteDouble2DDataset(H5::H5File const &file, std::string const &datasetName, gsl::span<const double> buffer, hsize_t m, hsize_t n)

Create and write to 2-dimensional native double dataset.

  • file: HDF5 file object

  • datasetName: Name of dataset to create

  • buffer: Flattened data to write to dataset (assuming row-major)

  • m: Number of rows in buffer

  • n: Number of columns buffer