#include using triqs::arrays::array; using triqs::arrays::matrix; int main() { array A(2, 2); A() = 3; // declare and init triqs::h5::file file("store_A.h5", H5F_ACC_TRUNC); // open the file h5_write(file, "A", A); // write the array as 'A' into the file // array B; // read the file into B matrix B; // read the file into B h5_read(file, "A", B); std::cout << "B = " << B << std::endl; h5_write(file, "B", B); }