Closed Maginor closed 5 years ago
Line 136 in de.cpp causes arma to throw a dimension mismatch exception (at least if n_vals is more than 1). The bug is fixed if I change line 134 to arma::rowvec prop_rand = arma::randu(1, n_vals)(2par_b) - par_b; // generate a vector of U[-b,b] RVs
Thanks for reporting this (and sorry for the delay). Should be fixed now.
Line 136 in de.cpp causes arma to throw a dimension mismatch exception (at least if n_vals is more than 1). The bug is fixed if I change line 134 to arma::rowvec prop_rand = arma::randu(1, n_vals)(2par_b) - par_b; // generate a vector of U[-b,b] RVs