Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-chai authored Oct 16, 2024
1 parent 0d4bf2a commit d32b0ba
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,19 @@ The output is:
tensor([[ 0, 2, -1, 1]], device='cuda:0')
```

To get indices in the SciPy's format:
```py
row_ind, col_ind = assignment_to_indices(assignment)
print(row_ind)
print(col_ind)
```

The output is:
```py
tensor([[0, 1, 3]], device='cuda:0')
tensor([[0, 2, 1]], device='cuda:0')
```

# Citation
The code was originally developed for the [HoTPP Benchmark](https://github.com/ivan-chai/hotpp-benchmark). If you use this code in your research project, please cite one of the following papers:
```
Expand Down

0 comments on commit d32b0ba

Please sign in to comment.