Skip to content

Commit

Permalink
0
Browse files Browse the repository at this point in the history
  • Loading branch information
K20shores committed Sep 23, 2024
1 parent 169b1fb commit c55569a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
22 changes: 0 additions & 22 deletions include/micm/util/sparse_matrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,28 +191,6 @@ namespace micm
OrderingPolicy::AddToDiagonal(diagonal_ids_, number_of_blocks_, row_ids_.size(), data_, value);
}

void print() const
{
for (std::size_t block = 0; block < number_of_blocks_; ++block)
{
for (std::size_t i = 0; i < row_start_.size() - 1; ++i)
{
for (std::size_t j = 0; j < row_start_.size() - 1; ++j)
{
if (IsZero(i, j))
{
std::cout << "0 ";
}
else
{
std::cout << data_[VectorIndex(block, i, j)] << " ";
}
}
std::cout << std::endl;
}
}
}

std::vector<T>& AsVector()
{
return data_;
Expand Down
2 changes: 1 addition & 1 deletion test/unit/solver/test_lu_decomposition_policy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ void check_results(
{
for (std::size_t j = 0; j < A.NumColumns(); ++j)
{
T result{};
T result{0};
for (std::size_t k = 0; k < A.NumRows(); ++k)
{
if (!(L.IsZero(i, k) || U.IsZero(k, j)))
Expand Down

0 comments on commit c55569a

Please sign in to comment.