Agora
1.2.0
Agora project
|
Go to the documentation of this file.
10 #ifndef AGORA_HDF5LIB_H_
11 #define AGORA_HDF5LIB_H_
26 Hdf5Lib(H5std_string hdf5_name, H5std_string group_name);
30 const std::array<hsize_t, kDsDimsNum>& chunk_dims,
31 const std::array<hsize_t, kDsDimsNum>& init_dims,
32 const ssize_t extend_dimension = 0,
33 const H5::PredType&
type = H5::PredType::STD_I16BE);
37 const std::array<hsize_t, kDsDimsNum>& extended_dims);
39 const std::array<hsize_t, kDsDimsNum>&
start,
40 const std::array<hsize_t, kDsDimsNum>&
count,
41 const short* wrt_data);
44 const std::array<hsize_t, kDsDimsNum>&
start,
45 const std::array<hsize_t, kDsDimsNum>&
count,
46 const float* wrt_data);
49 void WriteAttribute(
const char name[],
const std::vector<double>& val);
51 const std::vector<std::complex<int16_t>>& val);
53 const std::vector<std::complex<float>>& val);
56 void WriteAttribute(
const char name[],
const std::vector<size_t>& val);
58 void WriteAttribute(
const char name[],
const std::vector<std::string>& val);
63 std::unique_ptr<H5::H5File>
file_;
68 std::vector<std::unique_ptr<H5::DataSet>>
datasets_;
71 #endif // AGORA_HDF5LIB_H_
end IFFT Reshape the symbol vector into two different spatial streams size
Definition: generate_data.m:73
~Hdf5Lib()
Definition: hdf5_lib.cc:31
Definition: hdf5_lib.h:24
static constexpr size_t kDExtendDimIdx
Definition: hdf5_lib.cc:19
#define AGORA_LOG_ERROR(...)
Definition: logger.h:39
Definition: hdf5_lib.cc:17
count
Definition: inspect_agora_results.m:96
std::unique_ptr< H5::Group > group_
Definition: hdf5_lib.h:64
#define AGORA_LOG_TRACE(...)
Definition: logger.h:92
H5std_string hdf5_name_
Definition: hdf5_lib.h:61
void ExtendDataset(const std::string &dataset_name, const std::array< hsize_t, kDsDimsNum > &extended_dims)
Definition: hdf5_lib.cc:109
for i
Definition: generate_data.m:107
herr_t WriteDataset(const std::string &dataset_name, const std::array< hsize_t, kDsDimsNum > &start, const std::array< hsize_t, kDsDimsNum > &count, const short *wrt_data)
Definition: hdf5_lib.cc:135
std::unique_ptr< H5::H5File > file_
Definition: hdf5_lib.h:63
end start
Definition: inspect_agora_results.m:95
Hdf5Lib(H5std_string hdf5_name, H5std_string group_name)
Definition: hdf5_lib.cc:21
static constexpr bool kPrintDataSetInfo
Definition: hdf5_lib.cc:18
H5std_string group_name_
Definition: hdf5_lib.h:62
void FinalizeDataset(const std::string &dataset_name)
Definition: hdf5_lib.cc:101
void CreateDataset(const std::string &dataset_name, const std::array< hsize_t, kDsDimsNum > &chunk_dims, const std::array< hsize_t, kDsDimsNum > &init_dims, const ssize_t extend_dimension=0, const H5::PredType &type=H5::PredType::STD_I16BE)
Definition: hdf5_lib.cc:50
#define AGORA_LOG_INFO(...)
Definition: logger.h:62
Definition: json.hpp:5213
#define AGORA_LOG_WARN(...)
Definition: logger.h:53
std::map< std::string, size_t > ds_name_id_
Datset lookup table.
Definition: hdf5_lib.h:67
static constexpr size_t kDsDimsNum
Definition: hdf5_lib.h:22
void WriteAttribute(const char name[], double val)
Definition: hdf5_lib.cc:242
std::vector< std::unique_ptr< H5::DataSet > > datasets_
Definition: hdf5_lib.h:68
type
Definition: core.h:1131