hi,
I am new to c++ -
there may be a better way to do this but I have a CSV file with column names on top and row names along the left side. and the matrix contains double values.
i currently use a ifstream to pull in data into 3 containers -
list of column strings, list of row strings, vector of doubles.
I want to do a search on the strings in the columns to return the column position, then search the list of row strings to get the row position, then pull the value from my vector of doubles.
I then convert the vector of doubles into a 2d matrix.
Is this the best way to find the value from the table?
Also, efficiency is very important.
If it is significantly faster to convert the row strings and column strings to integers and then do the search, then that may be possible.