use fill::none to avoid default zeroing

This commit is contained in:
Conrad Sanderson
2021-07-01 05:21:18 +02:00
committed by GitHub
parent 44bb57ceb6
commit ba167cefa0
+1 -1
View File
@@ -76,7 +76,7 @@ typename MatType::elem_type SA<CoolingScheduleType>::Optimize(
size_t sweepCounter = 0;
BaseMatType accept(rows, cols, arma::fill::zeros);
BaseMatType moveSize(rows, cols);
BaseMatType moveSize(rows, cols, arma::fill::none);
moveSize.fill(initMoveCoef);
terminate |= Callback::BeginOptimization(*this, function, iterate,