22 #ifndef _HDF5SERIE_MATRIXSERIE_H_
23 #define _HDF5SERIE_MATRIXSERIE_H_
25 #include <fmatvec/atom.h>
29 #include <hdf5serie/simpleattribute.h>
30 #include <hdf5serie/fileserie.h>
69 DataSpace memDataSpace;
85 MatrixSerie(
const CommonFG& parent,
const std::string& name);
91 MatrixSerie(
const CommonFG& parent,
const std::string& name,
const int rows,
const int cols,
int compression=FileSerie::getDefaultCompression(),
int chunkSize=FileSerie::getDefaultChunkSize());
99 void create(
const CommonFG& parent,
const std::string& name,
const int rows,
const int cols,
int compression=FileSerie::getDefaultCompression(),
int chunksize=FileSerie::getDefaultChunkSize());
105 void open(
const CommonFG& parent,
const std::string& name);
118 void append(
const std::vector<std::vector<T> > &matrix);
133 std::vector<std::vector<T> >
getMatrix(
const int number);
141 void extend(
const hsize_t* size);
156 DataSpace fileDataSpace=getSpace();
157 fileDataSpace.getSimpleExtentDims(dims);
std::vector< std::vector< T > > getMatrix(const int number)
Returns the matrix at position number.
Definition: matrixserie.cc:132
unsigned int getColumns()
Returns the number of columns of the matrix.
Definition: matrixserie.h:163
void append(const std::vector< std::vector< T > > &matrix)
Append a matrix.
Definition: matrixserie.cc:113
std::string getDescription()
Return the description for the dataset.
Definition: matrixserie.cc:153
void create(const CommonFG &parent, const std::string &name, const int rows, const int cols, int compression=FileSerie::getDefaultCompression(), int chunksize=FileSerie::getDefaultChunkSize())
Creating a dataset.
Definition: matrixserie.cc:69
void setDescription(const std::string &desc)
Sets a description for the dataset.
Definition: matrixserie.cc:108
unsigned int getNumberOfMatrices()
Returns the number of matrices in the dataset.
Definition: matrixserie.h:149
MatrixSerie()
A stub constructor.
Definition: matrixserie.cc:36
void open(const CommonFG &parent, const std::string &name)
Open a dataset.
Definition: matrixserie.cc:89
unsigned int getRows()
Returns the number of rows of the matrix.
Definition: matrixserie.h:154
Serie of matrices.
Definition: matrixserie.h:66