Skip to content

Commit

Permalink
remove triplicate sanity checks in BsrMatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Jul 28, 2023
1 parent 71a2e0a commit 18bcdaf
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions sparse/src/KokkosSparse_BsrMatrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,16 +522,6 @@ class BsrMatrix {
"BsrMatrix:: annz should be a multiple of the number of entries in a "
"block");
}
if (annz % (blockDim_ * blockDim_)) {
throw std::runtime_error(
"BsrMatrix:: annz should be a multiple of the number of entries in a "
"block");
}
if (annz % (blockDim_ * blockDim_)) {
throw std::runtime_error(
"BsrMatrix:: annz should be a multiple of the number of entries in a "
"block");
}

using Coord = std::pair<OrdinalType, OrdinalType>; // row, col
using CoordComp = std::function<bool(
Expand Down

0 comments on commit 18bcdaf

Please sign in to comment.