Skip to content

Commit

Permalink
cast on the whole expression
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Xiang <tony.xiang@alliander.com>
  • Loading branch information
TonyXiang8787 committed Dec 30, 2024
1 parent abf6392 commit 5908cdb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ template <rk2_tensor Matrix> class DenseLUFactor {
.cwiseAbs2()
.maxCoeff(&row_biggest_eigen, &col_biggest_eigen);
// offset with pivot
int8_t const row_biggest = static_cast<int8_t>(row_biggest_eigen) + pivot;
int8_t const col_biggest = static_cast<int8_t>(col_biggest_eigen) + pivot;
int8_t const row_biggest = static_cast<int8_t>(row_biggest_eigen + pivot);
int8_t const col_biggest = static_cast<int8_t>(col_biggest_eigen + pivot);

// check absolute singular matrix
if (biggest_score == 0.0) {
Expand Down

0 comments on commit 5908cdb

Please sign in to comment.