Skip to content

Commit

Permalink
setting values to zero for lu decomp
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Sep 24, 2024
1 parent 7c90c71 commit 3ed3983
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/solver/test_linear_solver_policy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ void testExtremeInitialValue(std::size_t number_of_blocks, double initial_value)
auto get_double = std::bind(std::lognormal_distribution<double>(-two, two), generator);
const size_t size = 30;

auto builder = SparseMatrixPolicy::Create(size).SetNumberOfBlocks(number_of_blocks).InitialValue(1e-30);
auto builder = SparseMatrixPolicy::Create(size).SetNumberOfBlocks(number_of_blocks).InitialValue(0);
for (std::size_t i = 0; i < size; ++i) {
for (std::size_t j = 0; j < size; ++j) {
if (i == j || gen_bool()) {
Expand Down

0 comments on commit 3ed3983

Please sign in to comment.