Skip to content

Commit b6b1617

Browse files
committed
fixed straggling old names
1 parent 1fe399f commit b6b1617

File tree

4 files changed

+38
-38
lines changed

4 files changed

+38
-38
lines changed

resolve/hykkt/PermClass.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,22 @@ PermClass::PermClass(int n_h, int nnz_h, int nnz_j)
6868

6969
void PermClass::invertPerm()
7070
{
71-
reverse_perm(n_h_, perm_, rev_perm_);
71+
reversePerm(n_h_, perm_, rev_perm_);
7272
}
7373

7474
void PermClass::vecMapRC(int* b_i, int* b_j)
7575
{
76-
make_vecMapRC(n_h_, h_i_, h_j_, perm_, rev_perm_, b_i, b_j, perm_map_h_);
76+
makeVecMapRC(n_h_, h_i_, h_j_, perm_, rev_perm_, b_i, b_j, perm_map_h_);
7777
}
7878

7979
void PermClass::vecMapC(int* b_j)
8080
{
81-
make_vecMapC(n_j_, j_i_, j_j_, rev_perm_, b_j, perm_map_j_);
81+
makeVecMapC(n_j_, j_i_, j_j_, rev_perm_, b_j, perm_map_j_);
8282
}
8383

8484
void PermClass::vecMapR(int* b_i, int* b_j)
8585
{
86-
make_vecMapR(m_j_, jt_i_, jt_j_, perm_, b_i, b_j, perm_map_jt_);
86+
makeVecMapR(m_j_, jt_i_, jt_j_, perm_, b_i, b_j, perm_map_jt_);
8787
}
8888

8989
void PermClass::map_index(PermutationType permutation,
@@ -93,19 +93,19 @@ PermClass::PermClass(int n_h, int nnz_h, int nnz_j)
9393
switch(permutation)
9494
{
9595
case perm_v:
96-
cpu_map_idx(n_h_, perm_, old_val, new_val);
96+
cpuMapIdx(n_h_, perm_, old_val, new_val);
9797
break;
9898
case rev_perm_v:
99-
cpu_map_idx(n_h_, rev_perm_, old_val, new_val);
99+
cpuMapIdx(n_h_, rev_perm_, old_val, new_val);
100100
break;
101101
case perm_h_v:
102-
cpu_map_idx(nnz_h_, perm_map_h_, old_val, new_val);
102+
cpuMapIdx(nnz_h_, perm_map_h_, old_val, new_val);
103103
break;
104104
case perm_j_v:
105-
cpu_map_idx(nnz_j_, perm_map_j_, old_val, new_val);
105+
cpuMapIdx(nnz_j_, perm_map_j_, old_val, new_val);
106106
break;
107107
case perm_jt_v:
108-
cpu_map_idx(nnz_j_, perm_map_jt_, old_val, new_val);
108+
cpuMapIdx(nnz_j_, perm_map_jt_, old_val, new_val);
109109
break;
110110
default:
111111
printf("Valid arguments are perm_v, rev_perm_v, perm_h_v, perm_j_v, perm_jt_v\n");

resolve/hykkt/PermClass.hpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class PermClass
2121
*
2222
* @post h_i_ set to h_i, h_j_ set to h_j
2323
*/
24-
void add_h_info(int* h_i, int* h_j);
24+
void addHInfo(int* h_i, int* h_j);
2525

2626
/*
2727
* @brief loads CSR structure for matrix J
@@ -32,7 +32,7 @@ class PermClass
3232
*
3333
* @post j_i_ set to j_i, j_j_ set to j_j, n_j_ set to n_j, m_j_ set to m_j
3434
*/
35-
void add_j_info(int* j_i, int* j_j, int n_j, int m_j);
35+
void addJInfo(int* j_i, int* j_j, int n_j, int m_j);
3636

3737
/*
3838
* @brief loads CSR structure for matrix Jt
@@ -43,7 +43,7 @@ class PermClass
4343
* @pre
4444
* @post jt_i_ set to jt_i, jt_j_ set to jt_j
4545
*/
46-
void add_jt_info(int* jt_i, int* jt_j);
46+
void addJtInfo(int* jt_i, int* jt_j);
4747

4848
/*
4949
* @brief sets custom permutation of matrix
@@ -56,7 +56,7 @@ class PermClass
5656
* set to false so that custom_perm not deleted twice in destructors,
5757
* permutation vector copied onto device d_perm
5858
*/
59-
void add_perm(int* custom_perm);
59+
void addPerm(int* custom_perm);
6060

6161
/*
6262
* @brief Uses Symmetric Approximate Minimum Degree
@@ -66,10 +66,10 @@ class PermClass
6666
* initialized to the dimensions of matrix H, the number
6767
* of nonzeros it has, its row offsets, and column arrays
6868
*
69-
* @post perm is the perumation vector that implements symamd
69+
* @post perm is the perumation vector that implements symAmd
7070
* on the 2x2 system
7171
*/
72-
void symamd();
72+
void symAmd();
7373

7474
/*
7575
* @brief Creates reverse permutation of perm and copies onto device
@@ -80,7 +80,7 @@ class PermClass
8080
* @post rev_perm is now the reverse permuation of perm and copied onto
8181
* the device d_perm
8282
*/
83-
void invert_perm();
83+
void invertPerm();
8484

8585
/*
8686
* @brief Creates permutation of rows and columns of matrix
@@ -97,7 +97,7 @@ class PermClass
9797
* @post perm_map_h is now permuted rows/columns of H and copied onto
9898
* the device d_perm_map_h
9999
*/
100-
void vec_map_rc(int* b_i, int* b_j);
100+
void vecMapRC(int* b_i, int* b_j);
101101

102102
/*
103103
* @brief Creates the permutation of the columns of matrix J
@@ -112,7 +112,7 @@ class PermClass
112112
* @post perm_map_j is now the column permutation and is copied onto
113113
* the device d_perm_map_j
114114
*/
115-
void vec_map_c(int* b_j);
115+
void vecMapC(int* b_j);
116116

117117
/*
118118
* @brief Creates the permutation of the rows of matrix Jt
@@ -128,7 +128,7 @@ class PermClass
128128
* @post perm_map_jt is now the permuations of the rows of J transpose
129129
* and is copied onto the device d_perm_map_jt
130130
*/
131-
void vec_map_r(int* b_i, int* b_j);
131+
void vecMapR(int* b_i, int* b_j);
132132

133133
/*
134134
* @brief maps the permutated values of old_val to new_val
@@ -165,7 +165,7 @@ class PermClass
165165
* is now a vector with size nnz_h_, perm_map_j and perm_map_jt
166166
* are now vectors with size nnz_j_
167167
*/
168-
void allocate_workspace();
168+
void allocateWorkspace();
169169

170170
// member variables
171171
bool perm_is_default_ = true; // boolean if perm set custom

resolve/hykkt/cpuHykktPermutationKernels.cpp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
#include "cpuHykktPermutationKernels.hpp"
22

3-
void cpu_map_idx(int n, int* perm, double* old_val, double* new_val)
3+
void cpuMapIdx(int n, int* perm, double* old_val, double* new_val)
44
{
55
for (int i = 0; i < n; i++) {
66
new_val[i] = old_val[perm[i]];
77
}
88
}
99

10-
void selection_sort2(int len, int* arr1, int* arr2)
10+
void SelectionSort2(int len, int* arr1, int* arr2)
1111
{
1212
int min_ind;
1313
int temp;
@@ -64,7 +64,7 @@ void quickSort(int* arr1, int* arr2, int low, int high) {
6464
}
6565
}
6666

67-
void insertion_sort(int n, int* arr1, int* arr2)
67+
void InsertionSort(int n, int* arr1, int* arr2)
6868
{
6969
int i, key1, key2, j;
7070
for (i = 1; i < n; i++)
@@ -85,7 +85,7 @@ void insertion_sort(int n, int* arr1, int* arr2)
8585
}
8686
}
8787

88-
void make_vec_map_c(int n,
88+
void makeVecMapC(int n,
8989
int* rows,
9090
int* cols,
9191
int* rev_perm,
@@ -104,23 +104,23 @@ void make_vec_map_c(int n,
104104
perm_cols[row_s + j] = rev_perm[cols[row_s + j]];
105105
}
106106
#if 0
107-
selection_sort2(rowlen, &perm_cols[row_s], &perm_map[row_s]);
107+
SelectionSort2(rowlen, &perm_cols[row_s], &perm_map[row_s]);
108108
#else
109109
//quickSort(&perm_cols[row_s], &perm_map[row_s], 0, rowlen-1);
110-
insertion_sort(rowlen, &perm_cols[row_s], &perm_map[row_s]);
110+
InsertionSort(rowlen, &perm_cols[row_s], &perm_map[row_s]);
111111
#endif
112112
}
113113
}
114114

115-
void reverse_perm(int n, int* perm, int* rev_perm)
115+
void reversePerm(int n, int* perm, int* rev_perm)
116116
{
117117
for(int i = 0; i < n; i++)
118118
{
119119
rev_perm[perm[i]] = i;
120120
}
121121
}
122122

123-
void make_vec_map_r(int n,
123+
void makeVecMapR(int n,
124124
int* rows,
125125
int* cols,
126126
int* perm,
@@ -148,7 +148,7 @@ void make_vec_map_r(int n,
148148
}
149149
}
150150

151-
void make_vec_map_rc(int n,
151+
void makeVecMapRC(int n,
152152
int* rows,
153153
int* cols,
154154
int* perm,
@@ -174,10 +174,10 @@ void make_vec_map_rc(int n,
174174
perm_cols[count + j] = rev_perm[cols[row_s + j]];
175175
}
176176
#if 0
177-
selection_sort2(rowlen, &perm_cols[count], &perm_map[count]);
177+
SelectionSort2(rowlen, &perm_cols[count], &perm_map[count]);
178178
#else
179179
//quickSort(&perm_cols[count], &perm_map[count], 0, rowlen-1);
180-
insertion_sort(rowlen, &perm_cols[count], &perm_map[count]);
180+
InsertionSort(rowlen, &perm_cols[count], &perm_map[count]);
181181
#endif
182182
count += rowlen;
183183
}

resolve/hykkt/cpuHykktPermutationKernels.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
* @post: new_val contains the permuted old_val
1313
*/
14-
void cpu_map_idx(int n, int* perm, double* old_val, double* new_val);
14+
void cpuMapIdx(int n, int* perm, double* old_val, double* new_val);
1515
/*
1616
* @brief: Selection sorts arr1 and arr2 w/indices
1717
* based on increasing value in arr1
@@ -24,7 +24,7 @@ void cpu_map_idx(int n, int* perm, double* old_val, double* new_val);
2424
*
2525
* @post: arr1 and arr2 are sorted based on increasing values in arr1
2626
*/
27-
void selection_sort2(int len, int* arr1, int* arr2);
27+
void SelectionSort2(int len, int* arr1, int* arr2);
2828

2929
inline void swap(int* arr1, int* arr2, int i, int j);
3030
inline int partition(int* arr1, int* arr2, int low, int high);
@@ -42,7 +42,7 @@ void quickSort(int* arr1, int* arr2, int low, int high);
4242
*
4343
* @post: arr1 and arr2 are sorted based on increasing values in arr1
4444
*/
45-
void insertion_sort(int len, int* arr1, int* arr2);
45+
void InsertionSort(int len, int* arr1, int* arr2);
4646

4747
/*
4848
* @brief: Permutes the columns in a matrix represented by rows and cols
@@ -56,7 +56,7 @@ void insertion_sort(int len, int* arr1, int* arr2);
5656
* @post: perm_cols is now the permuted column array and perm_map stores
5757
* the corresponding indices to facilitate permuting the values
5858
*/
59-
void make_vec_map_c(int n,
59+
void makeVecMapC(int n,
6060
int* rows,
6161
int* cols,
6262
int* rev_perm,
@@ -72,7 +72,7 @@ void make_vec_map_c(int n,
7272
*
7373
* @post: rev_perm now contains the reverse permutation
7474
*/
75-
void reverse_perm(int n, int* perm, int* rev_perm);
75+
void reversePerm(int n, int* perm, int* rev_perm);
7676
/*
7777
* @brief: Permutes the rows in a matrix represented by rows and cols
7878
*
@@ -85,7 +85,7 @@ void reverse_perm(int n, int* perm, int* rev_perm);
8585
* @post: perm_rows and perm_cols are now the permuted rows and column arrays,
8686
* perm_map stores the corresponding indices to facilitate permuting the values
8787
*/
88-
void make_vec_map_r(int n,
88+
void makeVecMapR(int n,
8989
int* rows,
9090
int* cols,
9191
int* perm,
@@ -105,7 +105,7 @@ void make_vec_map_r(int n,
105105
* @post: perm_rows and perm_cols are now the permuted rows and column arrays,
106106
* perm_map stores the corresponding indices to facilitate permuting the values
107107
*/
108-
void make_vec_map_rc(int n,
108+
void makeVecMapRC(int n,
109109
int* rows,
110110
int* cols,
111111
int* perm,

0 commit comments

Comments
 (0)