CMP++: Uncertainty Quantification & Bayesian Calibration
Loading...
Searching...
No Matches
io.h
Go to the documentation of this file.
1#ifndef IO_H
2#define IO_H
3
4#include <cmp_defines.h>
5
10namespace cmp {
11
27void write_vector(const std::vector<Eigen::VectorXd> &data, std::ofstream &o_file);
28
45void write_data(const std::vector<Eigen::VectorXd> &x, const Eigen::MatrixXd &y, std::ofstream &o_file);
46
63std::vector<Eigen::VectorXd> read_vector(std::ifstream &i_file, std::string delimiter = ",", size_t header = 0);
64
65}
66
67
70#endif
Definition classifier.h:17
std::vector< Eigen::VectorXd > read_vector(std::ifstream &i_file, std::string delimiter=",", size_t header=0)
Read the contents of a delimited text file into vector collections.
Definition io.cpp:25
void write_data(const std::vector< Eigen::VectorXd > &x, const Eigen::MatrixXd &y, std::ofstream &o_file)
Write data points and evaluations to a file.
Definition io.cpp:13
void write_vector(const std::vector< Eigen::VectorXd > &data, std::ofstream &o_file)
Serializes a list of vector coordinates to a file stream.
Definition io.cpp:3