27#include "neml2/config.h"
31#include "csvparser/csv.hpp"
32#include "neml2/user_tensors/UserTensorBase.h"
34#include "neml2/misc/assertions.h"
52 std::vector<unsigned int>
parse_indices(
const csv::CSVReader & csv)
const;
56 std::vector<double> & vals,
58 std::size_t & ncol)
const;
62 const std::vector<unsigned int> & indices,
63 std::vector<double> & vals,
65 std::size_t & ncol)
const;
An interface class for reading CSV files.
Definition CSVReader.h:41
void read_by_indices(csv::CSVReader &csv, const std::vector< unsigned int > &indices, std::vector< double > &vals, std::size_t &nrow, std::size_t &ncol) const
Read values by specified column indices.
void read_all(csv::CSVReader &csv, std::vector< double > &vals, std::size_t &nrow, std::size_t &ncol) const
Read all values without column indices.
csv::CSVFormat parse_format() const
Helper function to parse CSV format.
std::vector< unsigned int > parse_indices(const csv::CSVReader &csv) const
Helper function to parse column indices.
static OptionSet expected_options()
CSVReader(const NEML2Object *obj)
The base class of all "manufacturable" objects in the NEML2 library.
Definition NEML2Object.h:51
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:51
Definition DiagnosticsInterface.cxx:30