Function hdf_input (o2scl_hdf)

O2scl : Function List

template<class vec_t, class fp_t>
void o2scl_hdf::hdf_input(hdf_file &hf, o2scl::table<vec_t, fp_t> &t, std::string name)

Input a o2scl::table object from a hdf_file.

If name has a non-zero length, then this function first reads the first object of type o2scl::table, otherwise, it reads the object of the specified name. If name is specified and no object is found, or if the object with the specified name is not of type o2scl::table, then the error handler is called. If name is unspecified and there is no object with type o2scl::table, then the error handler is called.

Note

This function is declared in table.h, and thus the default argument to the name parameter appears there instead of here.

void o2scl_hdf::hdf_input(hdf_file &hf, o2scl::table3d &h, std::string name = "")

Input a o2scl::table3d object from a hdf_file.

If name has a non-zero length, then this function first reads the first object of type o2scl::table3d, otherwise, it reads the object of the specified name. If name is specified and no object is found, or if the object with the specified name is not of type o2scl::table3d, then the error handler is called. If name is unspecified and there is no object with type o2scl::table3d, then the error handler is called.

template<class vec_t>
void o2scl_hdf::hdf_input(hdf_file &hf, o2scl::table_units<vec_t> &t, std::string name)

Input a o2scl::table_units object from a hdf_file.

If name has a non-zero length, then this function first reads the first object of type o2scl::table_units, otherwise, it reads the object of the specified name. If name is specified and no object is found, or if the object with the specified name is not of type o2scl::table_units, then the error handler is called. If name is unspecified and there is no object with type table_units, then the error handler is called.

Note

This function is declared in table_units.h, and thus the default argument to the name parameter appears there instead of here.

template<class vec_t, class vec_size_t>
void o2scl_hdf::hdf_input(hdf_file &hf, o2scl::tensor_grid<vec_t, vec_size_t> &t, std::string name)
template<class vec_t, class mat_t>
void o2scl_hdf::hdf_input(hdf_file &hf, o2scl::prob_dens_mdim_gaussian<vec_t, mat_t> &p, std::string name = "")

Input a o2scl::prob_dens_mdim_gaussian object from a hdf_file.

If name has a non-zero length, then this function first reads the first object of type o2scl::prob_dens_mdim_gaussian, otherwise, it reads the object of the specified name. If name is specified and no object is found, or if the object with the specified name is not of type o2scl::prob_dens_mdim_gaussian, then the error handler is called. If name is unspecified and there is no object with type o2scl::prob_dens_mdim_gaussian, then the error handler is called.

template<class mat_t, class vecp_t>
void o2scl_hdf::hdf_input(hdf_file &hf, o2scl::prob_dens_mdim_gmm<mat_t, vecp_t> &p, std::string name = "")

Input a o2scl::prob_dens_mdim_gmm object from a hdf_file.

If name has a non-zero length, then this function first reads the first object of type o2scl::prob_dens_mdim_gmm, otherwise, it reads the object of the specified name. If name is specified and no object is found, or if the object with the specified name is not of type o2scl::prob_dens_mdim_gmm, then the error handler is called. If name is unspecified and there is no object with type o2scl::prob_dens_mdim_gmm, then the error handler is called.

template<class vec_t, class mat_t>
void o2scl_hdf::hdf_input(hdf_file &hf, o2scl::prob_dens_mdim_amr<vec_t, mat_t> &p, std::string name = "")

Input a o2scl::prob_dens_mdim_amr object from a hdf_file.

If name has a non-zero length, then this function first reads the first object of type o2scl::prob_dens_mdim_amr, otherwise, it reads the object of the specified name. If name is specified and no object is found, or if the object with the specified name is not of type o2scl::prob_dens_mdim_amr, then the error handler is called. If name is unspecified and there is no object with type o2scl::prob_dens_mdim_amr, then the error handler is called.

void o2scl_hdf::hdf_input(hdf_file &hf, o2scl::hist &h, std::string name = "")

Input a o2scl::hist object from a hdf_file.

If name has a non-zero length, then this function first reads the first object of type o2scl::hist, otherwise, it reads the object of the specified name. If name is specified and no object is found, or if the object with the specified name is not of type o2scl::hist, then the error handler is called. If name is unspecified and there is no object with type o2scl::hist, then the error handler is called.

void o2scl_hdf::hdf_input(hdf_file &hf, o2scl::hist_2d &h, std::string name = "")

Input a o2scl::hist_2d object from a hdf_file.

If name has a non-zero length, then this function first reads the first object of type o2scl::hist_2d, otherwise, it reads the object of the specified name. If name is specified and no object is found, or if the object with the specified name is not of type o2scl::hist_2d, then the error handler is called. If name is unspecified and there is no object with type o2scl::hist_2d, then the error handler is called.

void o2scl_hdf::hdf_input(hdf_file &hf, o2scl::expval_scalar &h, std::string name = "")

Input a o2scl::expval_scalar object from a hdf_file.

If name has a non-zero length, then this function first reads the first object of type o2scl::expval_scalar, otherwise, it reads the object of the specified name. If name is specified and no object is found, or if the object with the specified name is not of type o2scl::expval_scalar, then the error handler is called. If name is unspecified and there is no object with type o2scl::expval_scalar, then the error handler is called.

void o2scl_hdf::hdf_input(hdf_file &hf, o2scl::expval_vector &h, std::string name = "")

Input a o2scl::expval_vector object from a hdf_file.

If name has a non-zero length, then this function first reads the first object of type o2scl::expval_vector, otherwise, it reads the object of the specified name. If name is specified and no object is found, or if the object with the specified name is not of type o2scl::expval_vector, then the error handler is called. If name is unspecified and there is no object with type o2scl::expval_vector, then the error handler is called.

void o2scl_hdf::hdf_input(hdf_file &hf, o2scl::expval_matrix &h, std::string name = "")

Input a o2scl::expval_matrix object from a hdf_file.

If name has a non-zero length, then this function first reads the first object of type o2scl::expval_matrix, otherwise, it reads the object of the specified name. If name is specified and no object is found, or if the object with the specified name is not of type o2scl::expval_matrix, then the error handler is called. If name is unspecified and there is no object with type o2scl::expval_matrix, then the error handler is called.

void o2scl_hdf::hdf_input(hdf_file &hf, o2scl::uniform_grid<double> &h, std::string name = "")

Input a o2scl::uniform_grid object from a hdf_file.

If name has a non-zero length, then this function first reads the first object of type o2scl::uniform_grid, otherwise, it reads the object of the specified name. If name is specified and no object is found, or if the object with the specified name is not of type o2scl::uniform_grid, then the error handler is called. If name is unspecified and there is no object with type o2scl::uniform_grid, then the error handler is called.

void o2scl_hdf::hdf_input(hdf_file &hf, std::vector<o2scl::contour_line> &cl, std::string name = "")

Input a vector of o2scl::contour_line objects from a hdf_file.

If name has a non-zero length, then this function first reads the first object of type o2scl::contour_line, otherwise, it reads the object of the specified name. If name is specified and no object is found, or if the object with the specified name is not of type o2scl::contour_line, then the error handler is called. If name is unspecified and there is no object with type o2scl::contour_line, then the error handler is called.

void o2scl_hdf::hdf_input(hdf_file &hf, std::vector<o2scl::edge_crossings> &ec, std::string name = "")

Input a vector of o2scl::edge_crossings objects from a hdf_file.

If name has a non-zero length, then this function first reads the first object of type o2scl::edge_crossings, otherwise, it reads the object of the specified name. If name is specified and no object is found, or if the object with the specified name is not of type o2scl::edge_crossings, then the error handler is called. If name is unspecified and there is no object with type o2scl::edge_crossings, then the error handler is called.

void o2scl_hdf::hdf_input(hdf_file &hf, o2scl::tensor_grid<std::vector<double>, std::vector<size_t>> &t, std::string name = "")

Input a o2scl::tensor_grid object from a hdf_file.

If name has a non-zero length, then this function first reads the first object of type o2scl::tensor_grid, otherwise, it reads the object of the specified name. If name is specified and no object is found, or if the object with the specified name is not of type o2scl::tensor_grid, then the error handler is called. If name is unspecified and there is no object with type o2scl::tensor_grid, then the error handler is called.