diff --git a/Eigen/src/SparseCore/SparseSparseProductWithPruning.h b/Eigen/src/SparseCore/SparseSparseProductWithPruning.h index 84816aef4..41e5261ae 100644 --- a/Eigen/src/SparseCore/SparseSparseProductWithPruning.h +++ b/Eigen/src/SparseCore/SparseSparseProductWithPruning.h @@ -84,7 +84,7 @@ struct sparse_sparse_product_with_pruning_selector res_(res.rows(), res.cols()); + remove_all_t res_{res.rows(), res.cols()}; internal::sparse_sparse_product_with_pruning_impl(lhs, rhs, res_, tolerance); res.swap(res_); } @@ -96,7 +96,7 @@ struct sparse_sparse_product_with_pruning_selector SparseTemporaryType; - SparseTemporaryType res_(res.rows(), res.cols()); + SparseTemporaryType res_{res.rows(), res.cols()}; internal::sparse_sparse_product_with_pruning_impl(lhs, rhs, res_, tolerance); res = res_; } @@ -107,7 +107,7 @@ struct sparse_sparse_product_with_pruning_selector res_(res.rows(), res.cols()); + remove_all_t res_{res.rows(), res.cols()}; internal::sparse_sparse_product_with_pruning_impl(rhs, lhs, res_, tolerance); res.swap(res_); }