Skip to content
This repository has been archived by the owner on Jun 21, 2024. It is now read-only.

Commit

Permalink
fix: remove unused print
Browse files Browse the repository at this point in the history
  • Loading branch information
tiankaima committed Jan 3, 2024
1 parent 8c4177e commit 0d4a132
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/SVDMethod/SVDMethod.cpp
Original file line number Diff line number Diff line change
@@ -66,18 +66,13 @@ ReformBidiagonalization_Result ReformBidiagonalization(const Matrix &matrix, ull
auto n = B.cols;
auto G = Matrix::identity(m);

B.print();

for (ull i = k + 1; i < n; i++) {
auto t = B.matrix[k][i] / B.matrix[i][i]; // tan(theta)
auto c = 1 / std::sqrt(1 + t * t); // cos(theta)
auto s = c * t; // sin(theta)

G = RotationMatrix(m, k, i, c, s) * G;
B = RotationMatrix(m, k, i, c, s) * B;

B.print();
G.print();
}

return {B, G};

0 comments on commit 0d4a132

Please sign in to comment.