11#include < resolve/hykkt/PermClass.hpp>
22#include < resolve/hykkt/cpuHykktPermutationKernels.hpp>
3- // #include <resolve/vector/Vector.hpp>
4- // #include <resolve/matrix/Csr.hpp>
53#include < cstdio>
64#include " amd.h"
75
@@ -11,7 +9,7 @@ PermClass::PermClass(int n_h, int nnz_h, int nnz_j)
119 nnz_h_(nnz_h),
1210 nnz_j_(nnz_j)
1311 {
14- allocate_workspace ();
12+ allocateWorkspace ();
1513 }
1614
1715 PermClass::~PermClass ()
@@ -25,34 +23,34 @@ PermClass::PermClass(int n_h, int nnz_h, int nnz_j)
2523 delete [] perm_map_jt_;
2624 }
2725
28- void PermClass::add_h_info (int * h_i, int * h_j)
26+ void PermClass::addHInfo (int * h_i, int * h_j)
2927 {
3028 h_i_ = h_i;
3129 h_j_ = h_j;
3230 }
3331
34- void PermClass::add_j_info (int * j_i, int * j_j, int n_j, int m_j)
32+ void PermClass::addJInfo (int * j_i, int * j_j, int n_j, int m_j)
3533 {
3634 j_i_ = j_i;
3735 j_j_ = j_j;
3836 n_j_ = n_j;
3937 m_j_ = m_j;
4038 }
4139
42- void PermClass::add_jt_info (int * jt_i, int * jt_j)
40+ void PermClass::addJtInfo (int * jt_i, int * jt_j)
4341 {
4442 jt_i_ = jt_i;
4543 jt_j_ = jt_j;
4644 }
4745
48- void PermClass::add_perm (int * custom_perm)
46+ void PermClass::addPerm (int * custom_perm)
4947 {
5048 perm_is_default_ = false ;
5149 perm_ = custom_perm;
5250 }
5351
54- // Symamd permutation of $H_\gamma$ in (6)
55- void PermClass::symamd ()
52+ // symAmd permutation of $H_\gamma$ in (6)
53+ void PermClass::symAmd ()
5654 {
5755 double Control[AMD_CONTROL], Info[AMD_INFO];
5856
@@ -68,27 +66,27 @@ PermClass::PermClass(int n_h, int nnz_h, int nnz_j)
6866 }
6967 }
7068
71- void PermClass::invert_perm ()
69+ void PermClass::invertPerm ()
7270 {
7371 reverse_perm (n_h_, perm_, rev_perm_);
7472 }
7573
76- void PermClass::vec_map_rc (int * b_i, int * b_j)
74+ void PermClass::vecMapRC (int * b_i, int * b_j)
7775 {
78- make_vec_map_rc (n_h_, h_i_, h_j_, perm_, rev_perm_, b_i, b_j, perm_map_h_);
76+ make_vecMapRC (n_h_, h_i_, h_j_, perm_, rev_perm_, b_i, b_j, perm_map_h_);
7977 }
8078
81- void PermClass::vec_map_c (int * b_j)
79+ void PermClass::vecMapC (int * b_j)
8280 {
83- make_vec_map_c (n_j_, j_i_, j_j_, rev_perm_, b_j, perm_map_j_);
81+ make_vecMapC (n_j_, j_i_, j_j_, rev_perm_, b_j, perm_map_j_);
8482 }
8583
86- void PermClass::vec_map_r (int * b_i, int * b_j)
84+ void PermClass::vecMapR (int * b_i, int * b_j)
8785 {
88- make_vec_map_r (m_j_, jt_i_, jt_j_, perm_, b_i, b_j, perm_map_jt_);
86+ make_vecMapR (m_j_, jt_i_, jt_j_, perm_, b_i, b_j, perm_map_jt_);
8987 }
9088
91- void PermClass::map_index (Permutation_Type permutation,
89+ void PermClass::map_index (PermutationType permutation,
9290 double * old_val,
9391 double * new_val)
9492 {
@@ -114,7 +112,7 @@ PermClass::PermClass(int n_h, int nnz_h, int nnz_j)
114112 }
115113 }
116114
117- void PermClass::allocate_workspace ()
115+ void PermClass::allocateWorkspace ()
118116 {
119117 perm_ = new int [n_h_];
120118 rev_perm_ = new int [n_h_];
0 commit comments