Skip to content

Commit 48f7709

Browse files
committed
Remove functions that are not used anymore
1 parent a2820c0 commit 48f7709

File tree

2 files changed

+0
-50
lines changed

2 files changed

+0
-50
lines changed

highs/ipm/hipo/auxiliary/Auxiliary.cpp

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -97,48 +97,6 @@ void transpose(const std::vector<Int>& ptr, const std::vector<Int>& rows,
9797
}
9898
}
9999

100-
void symProduct(const std::vector<Int>& ptr, const std::vector<Int>& rows,
101-
const std::vector<double>& vals, const std::vector<double>& x,
102-
std::vector<double>& y, double alpha) {
103-
// Matrix-vector product in CSC format, for symmetric matrix which stores only
104-
// the lower triangle.
105-
// Compute y = y + alpha * M * x
106-
107-
const Int n = ptr.size() - 1;
108-
109-
for (Int col = 0; col < n; ++col) {
110-
for (Int el = ptr[col]; el < ptr[col + 1]; ++el) {
111-
Int row = rows[el];
112-
double val = vals[el];
113-
114-
y[row] += alpha * val * x[col];
115-
if (row != col) y[col] += alpha * val * x[row];
116-
}
117-
}
118-
}
119-
120-
void symProductQuad(const std::vector<Int>& ptr, const std::vector<Int>& rows,
121-
const std::vector<double>& vals,
122-
const std::vector<double>& x, std::vector<HighsCDouble>& y,
123-
double alpha) {
124-
// Matrix-vector product in CSC format, for symmetric matrix which stores only
125-
// the lower triangle.
126-
// Compute y = y + alpha * M * x
127-
128-
const Int n = ptr.size() - 1;
129-
130-
for (Int col = 0; col < n; ++col) {
131-
for (Int el = ptr[col]; el < ptr[col + 1]; ++el) {
132-
Int row = rows[el];
133-
HighsCDouble val = vals[el];
134-
135-
y[row] += val * (HighsCDouble)x[col] * (HighsCDouble)alpha;
136-
if (row != col)
137-
y[col] += val * (HighsCDouble)x[row] * (HighsCDouble)alpha;
138-
}
139-
}
140-
}
141-
142100
void childrenLinkedList(const std::vector<Int>& parent, std::vector<Int>& head,
143101
std::vector<Int>& next) {
144102
// Create linked lists of children in elimination tree.

highs/ipm/hipo/auxiliary/Auxiliary.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <vector>
99

1010
#include "ipm/hipo/auxiliary/IntConfig.h"
11-
#include "util/HighsCDouble.h"
1211

1312
namespace hipo {
1413

@@ -20,13 +19,6 @@ void transpose(const std::vector<Int>& ptr, const std::vector<Int>& rows,
2019
void transpose(const std::vector<Int>& ptr, const std::vector<Int>& rows,
2120
const std::vector<double>& val, std::vector<Int>& ptrT,
2221
std::vector<Int>& rowsT, std::vector<double>& valT);
23-
void symProduct(const std::vector<Int>& ptr, const std::vector<Int>& rows,
24-
const std::vector<double>& vals, const std::vector<double>& x,
25-
std::vector<double>& y, double alpha = 1.0);
26-
void symProductQuad(const std::vector<Int>& ptr, const std::vector<Int>& rows,
27-
const std::vector<double>& vals,
28-
const std::vector<double>& x, std::vector<HighsCDouble>& y,
29-
double alpha);
3022
void childrenLinkedList(const std::vector<Int>& parent, std::vector<Int>& head,
3123
std::vector<Int>& next);
3224
void reverseLinkedList(std::vector<Int>& head, std::vector<Int>& next);

0 commit comments

Comments
 (0)