Skip to content

Commit 649a36c

Browse files
committed
Tidied up header file directives
1 parent 8ebae0b commit 649a36c

File tree

8 files changed

+20
-24
lines changed

8 files changed

+20
-24
lines changed

highs/pdlp/HiPdlpWrapper.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@
1515
#include <cassert>
1616

1717
#include "lp_data/HighsSolution.h"
18-
// #include "pdlp/cupdlp/cupdlp.h"
19-
20-
// typedef enum CONSTRAINT_TYPE { EQ = 0, LEQ, GEQ, BOUND } constraint_type;
21-
2218
HighsStatus solveLpHiPdlp(HighsLpSolverObject& solver_object);
2319

2420
HighsStatus solveLpHiPdlp(const HighsOptions& options, HighsTimer& timer,

highs/pdlp/hipdlp/linalg.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
/**@file pdlp/hipdlp/linalg.hpp
99
* @brief
1010
*/
11-
#ifndef LINALG_HPP
12-
#define LINALG_HPP
11+
#ifndef PDLP_HIPDLP_LINALG_HPP
12+
#define PDLP_HIPDLP_LINALG_HPP
1313

1414
#include <vector>
1515

@@ -52,4 +52,4 @@ std::vector<double> compute_row_norms(
5252
const HighsLp& lp, double p = std::numeric_limits<double>::infinity());
5353
} // namespace linalg
5454

55-
#endif // LINALG_HPP
55+
#endif // PDLP_HIPDLP_LINALG_HPP

highs/pdlp/hipdlp/logger.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
/**@file pdlp/hipdlp/logger.hpp
99
* @brief
1010
*/
11-
#ifndef LOGGER_HPP
12-
#define LOGGER_HPP
11+
#ifndef PDLP_HIPDLP_LOGGER_HPP
12+
#define PDLP_HIPDLP_LOGGER_HPP
1313

1414
#include <chrono>
1515
#include <fstream>
@@ -64,4 +64,4 @@ class Logger {
6464
std::ofstream log_file_;
6565
};
6666

67-
#endif // LOGGER_HPP
67+
#endif // PDLP_HIPDLP_LOGGER_HPP

highs/pdlp/hipdlp/pdhg.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
/**@file pdlp/hipdlp/pdhg.hpp
99
* @brief
1010
*/
11-
#ifndef PDHG_HPP
12-
#define PDHG_HPP
11+
#ifndef PDLP_HIPDLP_PDHG_HPP
12+
#define PDLP_HIPDLP_PDHG_HPP
1313

1414
#include <algorithm>
1515
#include <cmath>

highs/pdlp/hipdlp/restart.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
* @brief
1010
*/
1111
// restart.hpp
12-
#ifndef RESTART_HPP
13-
#define RESTART_HPP
12+
#ifndef PDLP_HIPDLP_RESTART_HPP
13+
#define PDLP_HIPDLP_RESTART_HPP
1414

1515
#include <cmath>
1616
#include <iostream>
@@ -55,4 +55,4 @@ class RestartScheme {
5555
double necessary_decay_factor_ = 0.8;
5656
};
5757

58-
#endif // RESTART_HPP
58+
#endif // PDLP_HIPDLP_RESTART_HPP

highs/pdlp/hipdlp/scaling.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
/**@file pdlp/hipdlp/scaling.hpp
99
* @brief
1010
*/
11-
#ifndef SCALING_HPP
12-
#define SCALING_HPP
11+
#ifndef PDLP_HIPDLP_SCALING_HPP
12+
#define PDLP_HIPDLP_SCALING_HPP
1313

1414
#include <algorithm>
1515
#include <cmath>
@@ -55,4 +55,4 @@ class Scaling {
5555
double ComputeNorm(const double* values, int size, double norm_type) const;
5656
};
5757

58-
#endif // SCALING_HPP
58+
#endif // PDLP_HIPDLP_SCALING_HPP

highs/pdlp/hipdlp/solver_results.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
/**@file pdlp/hipdlp/solver_results.hpp
99
* @brief
1010
*/
11-
#ifndef SOLVER_RESULTS_HPP
12-
#define SOLVER_RESULTS_HPP
11+
#ifndef PDLP_HIPDLP_SOLVER_RESULTS_HPP
12+
#define PDLP_HIPDLP_SOLVER_RESULTS_HPP
1313

1414
#include <vector>
1515

@@ -64,4 +64,4 @@ struct SolverResults {
6464
double duality_gap_last_restart = 0.0;
6565
};
6666

67-
#endif // SOLVER_RESULTS_HPP
67+
#endif // PDLP_HIPDLP_SOLVER_RESULTS_HPP

highs/pdlp/hipdlp/step.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
/**@file pdlp/hipdlp/step.hpp
99
* @brief
1010
*/
11-
#ifndef STEP_H
12-
#define STEP_H
11+
#ifndef PDLP_HIPDLP_STEP_HPP
12+
#define PDLP_HIPDLP_STEP_HPP
1313

1414
#include <vector>
1515

@@ -86,4 +86,4 @@ bool UpdateIteratesMalitskyPock(
8686

8787
} // namespace step
8888

89-
#endif // STEP_HPP
89+
#endif // PDLP_HIPDLP_STEP_HPP

0 commit comments

Comments
 (0)