Skip to content

Commit

Permalink
replace pow method that causes Solaris problems
Browse files Browse the repository at this point in the history
  • Loading branch information
adalisan committed Aug 22, 2017
1 parent 736ab44 commit 0491f70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/graphm/algorithm_path.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ match_result algorithm_path::match(graph& g, graph& h,gsl_matrix* gm_P_i, gsl_ma
gsl_vector_free(gv_ones);
//Delta matrix
gsl_matrix* gm_Delta=gsl_matrix_alloc(N, N);
for (int i=0; i<N; i++)
for (int j=0; j<N; j++) {
for (int i=0; i < N; i++)
for (int j=0; j < N; j++) {
gsl_matrix_set(gm_Delta, i, j, pow(gsl_matrix_get(gm_Lg_d, i, i)-gsl_matrix_get(gm_Lh_d, j, j), 2));
};
gsl_matrix_transpose(gm_Delta);
Expand Down Expand Up @@ -121,7 +121,7 @@ match_result algorithm_path::match(graph& g, graph& h,gsl_matrix* gm_P_i, gsl_ma
gm_P_bp_temp=gsl_matrix_alloc(N, N);
gm_P_bp=gsl_matrix_alloc(N, N);
};
long Nqua = pow(N, (int)4);
long Nqua = N*N*N*N;
//*************ALGORITHM***********************
bool bpath_continue=true;
double dlambda_add=dlambda_min;
Expand Down

0 comments on commit 0491f70

Please sign in to comment.