Skip to content

Commit

Permalink
Fix logic error (caused by copy-pasting :/).
Browse files Browse the repository at this point in the history
  • Loading branch information
breyerml committed Feb 16, 2025
1 parent 3c7710a commit fb74d9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/plssvm/matrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -982,8 +982,8 @@ template <typename T, layout_type layout>
using ssize_type = typename matrix<T, layout>::ssize_type;
matrix<T, layout> res{ plssvm::shape{ lhs.num_rows(), rhs.num_cols() } };

const auto num_rows = static_cast<ssize_type>(lhs.num_rows());
const auto num_cols = static_cast<ssize_type>(lhs.num_cols());
const auto num_rows = static_cast<ssize_type>(res.num_rows());
const auto num_cols = static_cast<ssize_type>(res.num_cols());

#pragma omp parallel for collapse(2) default(none) shared(lhs, rhs, res, num_rows, num_cols)
for (ssize_type row = 0; row < num_rows; ++row) {
Expand Down

0 comments on commit fb74d9e

Please sign in to comment.