The new read_eigen_matrix() removes the often-limiting maximum buffer size to read from a matrix. It first scans the given CSV to infer the correct number of rows and columns, then allocates the matrix of the exact dimensions needed, and finally fills it entry-by-entry. (While I was at it, I also moved check_file_is_writeable() to the utils file.)
@giacomodecarlo, as soon as this is merged into master, you can merge the master into your own branch to use this function :)
The new
read_eigen_matrix()
removes the often-limiting maximum buffer size to read from a matrix. It first scans the given CSV to infer the correct number of rows and columns, then allocates the matrix of the exact dimensions needed, and finally fills it entry-by-entry. (While I was at it, I also movedcheck_file_is_writeable()
to the utils file.)@giacomodecarlo, as soon as this is merged into master, you can merge the master into your own branch to use this function :)