Skip to content

Commit

Permalink
Fixed more errors that clang-tidy detected
Browse files Browse the repository at this point in the history
  • Loading branch information
spirosmaggioros committed Jul 6, 2024
1 parent 9aeaf1b commit 347af7b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/classes/disjoint_set/disjoint_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#ifdef __cplusplus
#include <vector>
#include <cstdint>
#endif

/**
Expand Down
1 change: 1 addition & 0 deletions src/classes/heap/min_heap.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#ifdef __cplusplus
#include <functional>
#include <iostream>
#include <cstdint>
#include <vector>
#endif

Expand Down
1 change: 1 addition & 0 deletions src/classes/tree/tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <functional>
#include <iostream>
#include <queue>
#include <memory>
#endif

/**
Expand Down
1 change: 1 addition & 0 deletions src/machine_learning/image/edge_detection/prewitt.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#ifdef __cplusplus
#include <iostream>
#include <vector>
#include <cmath>
#include "../image.h"
#endif

Expand Down
1 change: 1 addition & 0 deletions src/machine_learning/image/filters/median_filter.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#ifdef __cplusplus
#include <iostream>
#include <vector>
#include <algorithm>
#include "../image.h"
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#ifdef __cplusplus
#include <iostream>
#include <vector>
#include <cmath>
#endif


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class polynomial_regression{

int64_t maxRow = i;
for (int64_t k = i + 1; k < n; ++k) {
if (abs(A[k][i]) > abs(A[maxRow][i])) {
if (std::abs(A[k][i]) > std::abs(A[maxRow][i])) {
maxRow = k;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/machine_learning/search_algorithms/AStar/astar.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <vector>
#include <queue>
#include <climits>
#include <algorithm>
#endif


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <unordered_map>
#include <queue>
#include <climits>
#include <limits>
#endif

/**
Expand Down

0 comments on commit 347af7b

Please sign in to comment.