14 #include <boost/numeric/ublas/io.hpp> 15 #include <boost/numeric/ublas/matrix.hpp> 20 const std::string
FILE_NAME(
"boost_ublas_double.h5");
29 typedef typename boost::numeric::ublas::matrix<double> Matrix;
35 for (std::size_t i = 0; i <
size_x; ++i) {
54 std::cout <<
"Matrix result:\n" << result << std::endl;
58 std::cerr << err.
what() << std::endl;
void read(T &array) const
static DataSpace From(const ScalarValue &scalar_value)
void write(const T &buffer)
static const int ReadWrite
Open flag: Read Write access.
static const int Truncate
Open flag: Truncate a file if already existing.
const std::string FILE_NAME("boost_ublas_double.h5")
const char * what() const override
get the current exception error message
Basic HighFive Exception class.
const std::string DATASET_NAME("dset")
DataSet createDataSet(const std::string &dataset_name, const DataSpace &space, const DataType &type, const DataSetCreateProps &createProps=DataSetCreateProps(), const DataSetAccessProps &accessProps=DataSetAccessProps())
createDataSet Create a new dataset in the current file of datatype type and of size space ...
static const int Create
Open flag: Create non existing file.