Skip to content

Commit

Permalink
Update convert.py
Browse files Browse the repository at this point in the history
  • Loading branch information
daletovar authored Aug 9, 2019
1 parent 5edf2be commit 02a8589
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sparse/compressed/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def convert_to_flat(inds, shape, axisptr):
shape_bins = transform_shape(shape[axisptr:])
increments = List()
for i in range(len(uncompressed_inds)):
increments.append(uncompressed_inds[i] * shape_bins[i])
increments.append(
(uncompressed_inds[i] * shape_bins[i]).astype(np.int32))
operations = np.prod([ind.shape[0] for ind in increments[:-1]])
return compute_flat(increments, cols, operations)

Expand Down

0 comments on commit 02a8589

Please sign in to comment.