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

Commit

Permalink
fix: clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
tiankaima committed Dec 16, 2023
1 parent 2ba2974 commit 855e3a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions CustomMath_lib/QRMethod/QRMethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ QRMethodOutput<Matrix> QRMethod(const Matrix &matrix) {

ull m = 0;
ull k = 0;
ull l = 0;

for (ull i = H.rows - 1; i != -1; i--) {
if (i != 0) {
Expand Down Expand Up @@ -67,7 +66,7 @@ QRMethodOutput<Matrix> QRMethod(const Matrix &matrix) {
}
}
}
l = n - m - k;
auto l = n - m - k;

if (m == n || n - m - l <= 2) {
ITERATION_METHOD_TIMING_END
Expand Down Expand Up @@ -160,7 +159,7 @@ std::vector<llc> AllEigenValues(const Matrix &R) {
return result;
}

void print_llc(const std::vector<llc> vec) {
void print_llc(const std::vector<llc>& vec) {
for (auto i: vec) {
std::cout << i.real << " + " << i.complex << "i" << std::endl;
}
Expand Down
2 changes: 1 addition & 1 deletion CustomMath_lib/QRMethod/QRMethod.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ QRMethodOutput<Vector> AllRootsForPolynomial(const Vector &coefficients);

std::vector<llc> AllEigenValues(const Matrix &R);

void print_llc(const std::vector<llc> vec);
void print_llc(const std::vector<llc>& vec);

#endif //NUMERICAL_ALGEBRA_QRMETHOD_H

0 comments on commit 855e3a4

Please sign in to comment.