This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import scipy.sparse | |
def _alt_lexsort(arr, kind='stable'): | |
""" | |
Optimized and more flexible (allows to choose sorting algorithm) version of | |
np.lexsort. | |
Assumes positive elements such that the product of the maximum values in | |
each layer of arr, multiplied by the length of each layer | |
(i.e., arr[0].shape[0]), plus some margin for roundings, is lower than |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
```json | |
{ | |
"body": { | |
"key": { | |
"eldest_kid": "0101c77fbe863defea4df2e2afe636f0a49bf54135b2208df11b9ca84625c695218f0a", | |
"fingerprint": "33a9584a283356ba0cd4622fb0894b0104e29c73", | |
"host": "keybase.io", | |
"key_id": "b0894b0104e29c73", | |
"kid": "0101c77fbe863defea4df2e2afe636f0a49bf54135b2208df11b9ca84625c695218f0a", | |
"uid": "894610939a4502bf8c4a24f55716d919", |