/home/runner/work/DiFfRG_current/DiFfRG_current/DiFfRG/include/DiFfRG/common/csv.hh Source File#
|
DiFfRG
Discretization Framework for functional Renormalization Group flows
|
csv.hh
Go to the documentation of this file.
75 CsvTable parse_csv(std::string_view content, const CsvDialect &dialect = {}, std::string_view origin = {});
93 void write_csv_header(std::ostream &stream, const std::vector<std::string> &names, const CsvDialect &dialect = {});
98 void write_csv_row(std::ostream &stream, const std::vector<double> &values, const CsvDialect &dialect = {});
Definition complex_math.hh:10
double parse_csv_cell(std::string_view field)
Parse a single numeric cell, yielding NaN for anything that is not a number.
void write_csv_row(std::ostream &stream, const std::vector< double > &values, const CsvDialect &dialect={})
Write one row of values.
CsvTable parse_csv(std::string_view content, const CsvDialect &dialect={}, std::string_view origin={})
Parse CSV held in memory into a numeric table.
std::vector< std::string > split_csv_line(std::string_view line, char separator)
Split one CSV line into its fields, honouring quoting.
CsvTable read_csv(const std::string &path, const CsvDialect &dialect={})
Read a CSV file into a numeric table.
void write_csv_header(std::ostream &stream, const std::vector< std::string > &names, const CsvDialect &dialect={})
Write a header row, quoting any name that would otherwise forge a field boundary.
size_t n_rows() const
size_t column_index(std::string_view name) const
Look up a column by name.
size_t n_cols() const
Generated by