fill only non-integer matrices with NaN

This commit is contained in:
conrad
2026-06-26 12:27:57 +10:00
parent 340a1b3592
commit 3d7fd53b53
+1 -1
View File
@@ -1865,7 +1865,7 @@ diskio::load_csv_ascii(Mat<eT>& x, std::istream& f, std::string& err_msg, const
try { x.zeros(f_n_rows, f_n_cols); } catch(...) { err_msg = "not enough memory"; return false; }
if(strict) { x.fill(Datum<eT>::nan); } // take into account that each row may have a unique number of columns
if(strict && is_real<eT>::yes) { x.fill(Datum<eT>::nan); } // take into account that each row may have a unique number of columns
const bool use_mp = (arma_config::openmp) && (f_n_rows >= 2) && (f_n_cols >= 64);