Skip to content

Commit

Permalink
Merge pull request rapidsai#35 from afender/hotfix_idx_range_in_pr
Browse files Browse the repository at this point in the history
Fixed the size of the pagerank array in Pagerank bindings
  • Loading branch information
afender authored Jan 10, 2019
2 parents 4af3d3e + 7995e8d commit b91a6bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pagerank/pagerank_wrapper.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ cpdef pagerank(G,alpha=0.85, max_iter=100, tol=1.0e-5):

cdef gdf_graph* g = <gdf_graph*>graph
size = g.transposedAdjList.offsets.size
pagerank = cudf.Series(np.zeros(g.transposedAdjList.offsets.size,dtype=np.float64))
pagerank = cudf.Series(np.zeros(g.transposedAdjList.offsets.size-1,dtype=np.float64))
cdef uintptr_t pagerank_ptr = create_column(pagerank)

gdf_pagerank(<gdf_graph*>graph, <gdf_column*>pagerank_ptr, <float> alpha, <float> tol, <int> max_iter, <bool> 0)
Expand Down

0 comments on commit b91a6bc

Please sign in to comment.