src/simulate_matern32.cpp
std::vector<double> load_csv (const std::string & path) {
    std::ifstream indata;
    indata.open(path);
    std::string line;
    std::vector<double> values;
    uint rows = 0;
    while (std::getline(indata, line)) {
        std::stringstream lineStream(line);
        std::string cell;
        while (std::getline(lineStream, cell, ' ')) {
            //cout << std::stod(cell) << endl;
            values.push_back(std::stod(cell));
        }
        ++rows;
    }
    return values;
}
// function to read a space separated file
function to read a space separated file
function to read a space separated file
std::vector<double> load_csv (const std::string & path) {
    std::ifstream indata;
    indata.open(path);
    std::string line;
    std::vector<double> values;
    uint rows = 0;
    while (std::getline(indata, line)) {
        std::stringstream lineStream(line);
        std::string cell;
        while (std::getline(lineStream, cell, ' ')) {
            values.push_back(std::stod(cell));
        }
        ++rows;
    }
    return values;
}
std :: vector < double > load_csv ( const std :: string & path ) { std :: ifstream indata ; indata . open ( path ) ; std :: string line ; std :: vector < double > values ; uint rows = 0 ; while ( std :: getline ( indata , line ) ) { std :: stringstream lineStream ( line ) ; std :: string cell ; while ( std :: getline ( lineStream , cell , ' ' ) ) { values . push_back ( std :: stod ( cell ) ) ; } ++ rows ; } return values ; }
function to read a space separated file
function to read a space separated file
//cout << std::stod(cell) << endl;