-
For example:
```python
import jax.numpy as jnp
x = jnp.zeros((2, 1000))
jnp.unique(x, axis=0) # takes ~2.5 minutes on a Colab CPU
```
The issue is that XLA has no `unique` primitive, so we're f…
-
Given integers `n` and `k`, find the lexicographically k-th smallest integer in the range from `1` to `n`.
Note: 1 ≤ k ≤ n ≤ 109.
Example:
Input:
n: 13 k: 2
Output:
…
-
I have a list of non-whole **numbers**. This is the correct ordering:
```
2.4
10.13
10.2
```
Sorting using VS Code's sort gives:
```
10.13
10.2
2.4
```
Sorting with `Sort lines (natural)` …
-
In the last Temporal meeting we discussed a possible algorithm for CalendarDateDifference that is generalizable to lunisolar calendars. @sffc suggested that ICU4X might implement this. I don't know wh…
-
The status of `Well-founded` and variants is unclear.
Today, it is used for `Int`, which is not right, because integers are not well-founded. But this is more-or less sound because Why3 adds the re…
-
We implement a reasonably fast lexicographic iterator for modules over `ZZ/nZZ`. We integrate a `minimum_weight` method that could be used as an alternative to GAP in some part of `sage.codings`.
S…
-
I've come across a situation requiring the ability to base-encode but preserve the lexicographic-order of the input bytes.
That is the order of the base encoding alphabet should be in the same orde…
-
See:
https://tools.ietf.org/html/draft-rundgren-json-canonicalization-scheme-01
https://github.com/cyberphone/json-canonicalization
https://github.com/erdtman/canonicalize
-
Labels are stored as text, but we'd like them to be sorted numerically (lexicographically). There's probably some fancy thing we could do with custom PostgreSQL types, but the simpler solution is to …
-
Something along the lines of:
```
class (Ord m, LeftGCDMonoid m, MonoidNull m) => Lexicographic m where
```
To rule out cases where the ordering changes over the course of the comparison, we s…