5 #include "flame/h5loader.h"
7 int main(
int argc,
char *argv[])
10 std::cerr<<
"Usage: "<<argv[0]<<
" <h5file>[/<h5/path]/<dsetname>\n";
15 H5Loader::dontPrint();
17 std::string spec(argv[1]);
18 size_t sep = spec.find_last_of(
'/');
20 std::cerr<<
"Missing dataset name (eg. 'file.h5/dataset')\n";
29 for(
size_t i=0; i<data.size1(); i++) {
31 for(
size_t j=0; j<data.size2(); j++) {
32 std::cout<<data(i,j)<<
", ";
37 }
catch(std::exception& e){
38 std::cerr<<
"Error : "<<e.what()<<
"\n";
boost::numeric::ublas::matrix< double, boost::numeric::ublas::row_major, boost::numeric::ublas::unbounded_array< double > > matrix_t
A 2d matrix.
Helper to read 2d matricies.