mtzikara
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
serial_v2/serial_gs_pagerank_functions.c
|
|
@ -208,7 +208,7 @@ void matrixVectorMultiplication(int **transitionMatrix, double *previousPagerank |
|
|
|
for (int j=i; j<vectorSize; ++j) { |
|
|
|
sum2 += transitionMatrix[i][j] * (*pagerankVector)[j]; |
|
|
|
} |
|
|
|
(*pagerankVector)[i] = dampingFactor * sum1+dampingFactor * sum2+(1-dampingFactor); |
|
|
|
(*pagerankVector)[i] = dampingFactor * sum1+dampingFactor * sum2; |
|
|
|
} |
|
|
|
|
|
|
|
//double normDifference = vectorNorm(previousPagerankVector, vectorSize) -
|
|
|
|