Skip to content

Commit

Permalink
Fixed a bug in calculating weighted efficiency.
Browse files Browse the repository at this point in the history
  • Loading branch information
stevencwilliams committed Apr 23, 2012
1 parent 04742c3 commit e523f8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion efficiency.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ MATRIX_T* distance_inv(const MATRIX_T* G, const MATRIX_T* D) {

MATRIX_T* D_inv;
if (D == NULL) {
MATRIX_T* temp = distance_wei(G);
MATRIX_T* G_inv = invert_elements(G);
MATRIX_T* temp = distance_wei(G_inv);
MATRIX_ID(free)(G_inv);
D_inv = invert_elements(temp);
MATRIX_ID(free)(temp);
} else {
Expand Down

0 comments on commit e523f8e

Please sign in to comment.