Skip to content

Commit

Permalink
remove the duplicated initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
yhmtsai committed Sep 30, 2024
1 parent 9abdf5f commit abac7cc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/factorization/lu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ std::unique_ptr<LinOp> Lu<ValueType, IndexType>::generate_impl(
factors->get_const_row_ptrs(), factors->get_const_col_idxs(), num_rows,
allowed_sparsity, storage_offsets.get_const_data(),
row_descs.get_data(), storage.get_data()));
// initialize factors
exec->run(make_fill_array(factors->get_values(),
factors->get_num_stored_elements(),
zero<ValueType>()));
exec->run(make_initialize(
mtx.get(), storage_offsets.get_const_data(), row_descs.get_const_data(),
storage.get_const_data(), diag_idxs.get_data(), factors.get()));
Expand Down

0 comments on commit abac7cc

Please sign in to comment.