Function csv_to_mat

Function Documentation

vector<vector<double>> csv_to_mat(const string &filename)

Read a csv file and create a matrix (vector<vector<double>>) with its contents.

Parameters:

filename – the path of the csv file.

Returns:

vector<vector<double>>