vSMC
vSMC: Scalable Monte Carlo
|
Load and store objects in the HDF5 format. More...
Functions | |
template<> | |
inline::hid_t | vsmc::hdf5io_datatype< char > () |
HDF5 data type specialization for char. More... | |
template<> | |
inline::hid_t | vsmc::hdf5io_datatype< double > () |
HDF5 data type specialization for double. More... | |
template<> | |
inline::hid_t | vsmc::hdf5io_datatype< float > () |
HDF5 data type specialization for float. More... | |
template<> | |
inline::hid_t | vsmc::hdf5io_datatype< int > () |
HDF5 data type specialization for int. More... | |
template<> | |
inline::hid_t | vsmc::hdf5io_datatype< long > () |
HDF5 data type specialization for long. More... | |
template<> | |
inline::hid_t | vsmc::hdf5io_datatype< long double > () |
HDF5 data type specialization for long double. More... | |
template<> | |
inline::hid_t | vsmc::hdf5io_datatype< long long > () |
HDF5 data type specialization for long long. More... | |
template<> | |
inline::hid_t | vsmc::hdf5io_datatype< short > () |
HDF5 data type specialization for short. More... | |
template<> | |
inline::hid_t | vsmc::hdf5io_datatype< signed char > () |
HDF5 data type specialization for signed char. More... | |
template<> | |
inline::hid_t | vsmc::hdf5io_datatype< unsigned char > () |
HDF5 data type specialization for unsigned char. More... | |
template<> | |
inline::hid_t | vsmc::hdf5io_datatype< unsigned int > () |
HDF5 data type specialization for unsigned int. More... | |
template<> | |
inline::hid_t | vsmc::hdf5io_datatype< unsigned long > () |
HDF5 data type specialization for unsigned long. More... | |
template<> | |
inline::hid_t | vsmc::hdf5io_datatype< unsigned long long > () |
HDF5 data type specialization for unsigned long. More... | |
template<> | |
inline::hid_t | vsmc::hdf5io_datatype< unsigned short > () |
HDF5 data type specialization for unsigned short. More... | |
template<typename T , typename OutputIter > | |
OutputIter | vsmc::hdf5load (const std::string &file_name, const std::string &data_name, OutputIter first) |
Load raw data in the HDF5 format. More... | |
inline::hsize_t | vsmc::hdf5size (const std::string &file_name, const std::string &data_name) |
Get the number of bytes of the data in the HDF5 format. More... | |
template<typename T > | |
void | vsmc::hdf5store (const Sampler< T > &sampler, const std::string &file_name, const std::string &data_name, bool append=false) |
Store a Sampler in the HDF5 format. More... | |
template<MatrixLayout Layout, std::size_t Dim, typename T > | |
void | vsmc::hdf5store (const StateMatrix< Layout, Dim, T > &state, const std::string &file_name, const std::string &data_name, bool append=false) |
Store a StateMatrix in the HDF5 format. More... | |
template<MatrixLayout Layout, typename T , std::size_t StateSize, typename RealType , typename ID > | |
void | vsmc::hdf5store (const StateCL< StateSize, RealType, ID > &state, const std::string &file_name, const std::string &data_name, bool append=false) |
Store a StateCL in the HDF5 format. More... | |
template<typename T > | |
void | vsmc::hdf5store (const Particle< T > &particle, const std::string &file_name, const std::string &data_name, bool append=false) |
Store a Particle in the HDF5 format. More... | |
template<MatrixLayout Layout, typename T , typename U > | |
void | vsmc::hdf5store (const Particle< U > &particle, const std::string &file_name, const std::string &data_name, bool append=false) |
Store a Particle with StateCL value type in the HDF5 format. More... | |
template<typename T , typename InputIterIter , typename SInputIter > | |
void | vsmc::hdf5store_list (std::size_t nrow, std::size_t ncol, const std::string &file_name, const std::string &data_name, InputIterIter first, SInputIter sfirst, bool append=false) |
Store a list in the HDF5 format from an iterator to iterators. More... | |
template<typename SInputIter , typename InputIter , typename... InputIters> | |
void | vsmc::hdf5store_list (std::size_t nrow, const std::string &file_name, const std::string &data_name, const std::tuple< InputIter, InputIters... > &first, SInputIter sfirst, bool append=false) |
Store a list in the HDF5 format from tuple of iterators. More... | |
void | vsmc::hdf5store_list_empty (const std::string &file_name, const std::string &data_name, bool append=false) |
Create an empty list. More... | |
template<typename T , typename InputIter > | |
void | vsmc::hdf5store_list_insert (std::size_t N, const std::string &file_name, const std::string &data_name, InputIter first, const std::string &vname) |
Insert a variable into an existing list saved in HDF5 format. More... | |
template<MatrixLayout Layout, typename T , typename InputIter > | |
InputIter | vsmc::hdf5store_matrix (std::size_t nrow, std::size_t ncol, const std::string &file_name, const std::string &data_name, InputIter first, bool append=false) |
Store a matrix in the HDF5 format from an input iterator. More... | |
void | vsmc::hdf5store_new (const std::string &file_name) |
Create a new HDF5 file for store data. More... | |
Load and store objects in the HDF5 format.
inline ::hid_t vsmc::hdf5io_datatype< char > | ( | ) |
HDF5 data type specialization for char.
Definition at line 137 of file hdf5io.hpp.
inline ::hid_t vsmc::hdf5io_datatype< double > | ( | ) |
HDF5 data type specialization for double.
Definition at line 233 of file hdf5io.hpp.
inline ::hid_t vsmc::hdf5io_datatype< float > | ( | ) |
HDF5 data type specialization for float.
Definition at line 225 of file hdf5io.hpp.
inline ::hid_t vsmc::hdf5io_datatype< int > | ( | ) |
HDF5 data type specialization for int.
Definition at line 177 of file hdf5io.hpp.
inline ::hid_t vsmc::hdf5io_datatype< long > | ( | ) |
HDF5 data type specialization for long.
Definition at line 193 of file hdf5io.hpp.
inline ::hid_t vsmc::hdf5io_datatype< long double > | ( | ) |
HDF5 data type specialization for long double.
Definition at line 241 of file hdf5io.hpp.
inline ::hid_t vsmc::hdf5io_datatype< long long > | ( | ) |
HDF5 data type specialization for long long.
Definition at line 209 of file hdf5io.hpp.
inline ::hid_t vsmc::hdf5io_datatype< short > | ( | ) |
HDF5 data type specialization for short.
Definition at line 161 of file hdf5io.hpp.
inline ::hid_t vsmc::hdf5io_datatype< signed char > | ( | ) |
HDF5 data type specialization for signed char.
Definition at line 145 of file hdf5io.hpp.
inline ::hid_t vsmc::hdf5io_datatype< unsigned char > | ( | ) |
HDF5 data type specialization for unsigned char.
Definition at line 153 of file hdf5io.hpp.
inline ::hid_t vsmc::hdf5io_datatype< unsigned int > | ( | ) |
HDF5 data type specialization for unsigned int.
Definition at line 185 of file hdf5io.hpp.
inline ::hid_t vsmc::hdf5io_datatype< unsigned long > | ( | ) |
HDF5 data type specialization for unsigned long.
Definition at line 201 of file hdf5io.hpp.
inline ::hid_t vsmc::hdf5io_datatype< unsigned long long > | ( | ) |
HDF5 data type specialization for unsigned long.
Definition at line 217 of file hdf5io.hpp.
inline ::hid_t vsmc::hdf5io_datatype< unsigned short > | ( | ) |
HDF5 data type specialization for unsigned short.
Definition at line 169 of file hdf5io.hpp.
|
inline |
Load raw data in the HDF5 format.
Definition at line 281 of file hdf5io.hpp.
|
inline |
Get the number of bytes of the data in the HDF5 format.
Get the number of elements of the data in the HDF5 format given type.
Definition at line 248 of file hdf5io.hpp.
|
inline |
Store a Sampler in the HDF5 format.
Definition at line 647 of file hdf5io.hpp.
|
inline |
Store a StateMatrix in the HDF5 format.
Definition at line 700 of file hdf5io.hpp.
|
inline |
Store a StateCL in the HDF5 format.
Definition at line 712 of file hdf5io.hpp.
|
inline |
Store a Particle in the HDF5 format.
Definition at line 729 of file hdf5io.hpp.
|
inline |
Store a Particle with StateCL value type in the HDF5 format.
Definition at line 742 of file hdf5io.hpp.
|
inline |
Store a list in the HDF5 format from an iterator to iterators.
T | Type of the data |
InputIterIter | The input iterator type, which points to input iterators |
SInputIter | The input iterator type of names |
nrow | Number of elements in each element of the list |
ncol | Number of elements in the list |
file_name | Name of the HDF5 file |
data_name | Name of the list |
first | An iterator points to a sequence of iterators of length ncol. Each derefence of an iterator is iteself an iterator that points to the beginning of an element of the list. |
sfirst | An iterator points to the beginning of a sequence of strings that store the names of each column. The dereference need to be convertible to std::string |
append | If true the data is appended into an existing file, otherwise save in a new file |
hdf5store_list_insert
to insert each element. Definition at line 457 of file hdf5io.hpp.
|
inline |
Store a list in the HDF5 format from tuple of iterators.
A list is similar to that in R. It is much like a matrix except that each column will be stored seperatedly as an variable and given a name.
nrow | Number of rows |
file_name | Name of the HDF5 file |
data_name | Name of the list |
first | A std::tuple type object whose element types are iterators. Each element is the beginning of an element of the list. |
sfirst | An iterator points to the beginning of a sequence of strings that store the names of each column. The dereference need to be convertible to std::string |
append | If true the data is appended into an existing file, otherwise save in a new file |
Definition at line 587 of file hdf5io.hpp.
|
inline |
Create an empty list.
file_name | Name of the HDF5 file |
data_name | Name of the list |
append | If true the data is appended into an existing file, otherwise save in a new file |
Definition at line 411 of file hdf5io.hpp.
|
inline |
Insert a variable into an existing list saved in HDF5 format.
N | The length of the variable vector. It may be different from that of the existing list. |
file_name | Name of the HDF5 file |
data_name | Name of the list |
first | An iterator points to the beginning of the variable vector |
vname | Name of the new variable |
Definition at line 505 of file hdf5io.hpp.
|
inline |
Store a matrix in the HDF5 format from an input iterator.
Layout | Storage layout (RowMajor or ColMajor) |
T | Type of the data |
nrow | Number of rows |
ncol | Number of columns |
file_name | Name of the HDF5 file |
data_name | Name of the matrix data |
first | An input iterator to sequence of length nrow * ncol |
append | If true the data is appended into an existing file, otherwise save in a new file |
Definition at line 368 of file hdf5io.hpp.
|
inline |
Create a new HDF5 file for store data.
Definition at line 310 of file hdf5io.hpp.