Skip to content

Commit

Permalink
Fix typo in dimension check
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin D. Weinberg committed Feb 13, 2025
1 parent a245c2f commit 46161f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions expui/SvdSignChoice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ namespace MSSA {
{
// SDV dimensions
int I = U.rows();
int J = V.cols();
int J = V.rows();
int K = S.size();

// Dimensions
Expand All @@ -45,7 +45,7 @@ namespace MSSA {
if (U.cols() != K)
throw std::invalid_argument("SvdSignChoice: U has wrong dimensions");

if (V.rows() != K)
if (V.cols() != K)
throw std::invalid_argument("SvdSignChoice: V has wrong dimensions");

if (X.rows() != I || X.cols() != J)
Expand Down

0 comments on commit 46161f9

Please sign in to comment.