102 {
103
105
106
108 scalar_writer_t::configuration_type scalar_config{};
109 scalar_config.name = "scalar";
110 scalar_config.deflate =
deflate;
112
113
114 scalar_writer_t scalar = [&] {
115 scalar_writer_t
source(out_file, consumers, scalar_config);
117 return scalar_writer_t(std::move(source));
118 }();
119 for (
size_t n = 1;
n < iterations;
n++) {
121 }
122
123
125 d1_t::configuration_type d1_config{};
126 d1_config.name = "1d";
127 d1_config.extent = {10};
128 d1_config.chunks = {5};
130 d1_t
d1(out_file, consumers, d1_config);
131 for (
size_t n = 0;
n < iterations;
n++) {
133 }
134
135
137 d4_t::configuration_type d4_config;
138 d4_config.name = "4d";
139 d4_config.extent = {2,3,4,5};
140 d4_config.chunks = {1,2,1,2};
142 d4_t d4(out_file, consumers, d4_config);
143 for (
size_t n = 0;
n < iterations;
n++) {
145
146
147 vals.at(1).at(2).at(3).at(4).stype = 86;
148 d4.fill(std::move(vals));
149 }
150}
mapped_type at(key_type key) const
Look up an element in the map.
H5Utils::Consumers< const out_t & > consumer_t
consumer_t getConsumers()
auto nestOutputs(int offset, size_t length)
std::vector< out_t > getOutputs(int offset, size_t length, float factor)