Template Function read_array_with_shape_from_h5_file

Function Documentation

template<typename T>
h5read_processed_utils::H5ArrayData<T> read_array_with_shape_from_h5_file(std::string_view filename, std::string_view dataset_name)

Reads an HDF5 dataset and returns its data and shape.

Template Parameters:

T – Type of data to read (e.g., double, int).

Parameters:
  • filename – Path to the HDF5 file.

  • dataset_name – Full path to the dataset.

Returns:

H5ArrayData<T> containing flat data and shape vector.