11 toto &toto::operator+=(
toto const &b) {
24 void h5_write(h5::group grp, std::string subgroup_name,
toto const &m) {
25 grp = subgroup_name.empty() ? grp : grp.create_group(subgroup_name);
26 h5_write(grp,
"i", m.i);
30 void h5_read(h5::group grp, std::string subgroup_name, toto &m) {
31 grp = subgroup_name.empty() ? grp : grp.open_group(subgroup_name);
38 int n_digits_j = j > 0 ? (int)log10(j) + 1 : 1;
39 return i * int(pow(10, n_digits_j)) + j;
Provides various functions and classes for the app4triqs application.
toto operator+(toto const &b) const
Arithmetic operations.
bool operator==(toto const &b) const
Comparison.
static std::string hdf5_format()
HDF5.
int chain(int i, int j)
Chain digits of two integers.