Skip to content

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-copeland committed May 18, 2024
1 parent 3dd2758 commit 128b83b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/linalg/Matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1124,13 +1124,13 @@ Matrix::calculateNumDistributedRows() {
std::unique_ptr<Matrix> Matrix::qr_factorize() const
{
std::vector<Matrix*> QR;
qr_factorize(true, QR);
qr_factorize(false, QR);
return std::unique_ptr<Matrix>(QR[0]);
}

void Matrix::qr_factorize(std::vector<std::unique_ptr<Matrix>> & QR) const
{
std::vector<Matrix*> QRraw;
std::vector<Matrix*> QRraw; // Raw pointers
qr_factorize(true, QRraw);
QR.clear();
for (int i=0; i<2; ++i)
Expand Down
2 changes: 0 additions & 2 deletions unit_tests/test_QR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@ TEST(QRfactorizeTest, Test_QR)

EXPECT_NEAR(maxError, 0.0, 1.0e-15);

if (rank > 0) return;

EXPECT_EQ(R->numRows(), num_columns);
EXPECT_EQ(R->numColumns(), num_columns);

Expand Down

0 comments on commit 128b83b

Please sign in to comment.