Skip to content

Conversation

@yyyyx4
Copy link
Member

@yyyyx4 yyyyx4 commented Oct 12, 2024

This should be equivalent but faster (see #38347).

sage: E = EllipticCurve(GF((2^77-33, 2)), [1,0])
....: P, Q = E.gens()
....: pi = E.automorphisms()[-1]
....: %time pi.matrix_on_subgroup([P, Q])

Sage 10.5.beta7:

CPU times: user 13.8 s, sys: 32.5 ms, total: 13.8 s

This branch:

CPU times: user 48.1 ms, sys: 64 µs, total: 48.2 ms

@github-actions
Copy link

Documentation preview for this PR (built with commit fc05e23; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@yyyyx4 yyyyx4 requested review from GiacomoPope and grhkm21 October 12, 2024 15:37
Copy link
Contributor

@grhkm21 grhkm21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice improvement!

@grhkm21
Copy link
Contributor

grhkm21 commented Oct 12, 2024

There's a timeout in doctest that I can't replicate locally.

vbraun pushed a commit to vbraun/sage that referenced this pull request Oct 17, 2024
sagemathgh-38805: use specialized 2-dimensional .log() method in .matrix_on_subgroup()
    
This should be equivalent but faster (see sagemath#38347).

```sage
sage: E = EllipticCurve(GF((2^77-33, 2)), [1,0])
....: P, Q = E.gens()
....: pi = E.automorphisms()[-1]
....: %time pi.matrix_on_subgroup([P, Q])
```

Sage 10.5.beta7:
```
CPU times: user 13.8 s, sys: 32.5 ms, total: 13.8 s
```

This branch:
```
CPU times: user 48.1 ms, sys: 64 µs, total: 48.2 ms
```
    
URL: sagemath#38805
Reported by: Lorenz Panny
Reviewer(s): grhkm21
vbraun pushed a commit to vbraun/sage that referenced this pull request Oct 18, 2024
sagemathgh-38805: use specialized 2-dimensional .log() method in .matrix_on_subgroup()
    
This should be equivalent but faster (see sagemath#38347).

```sage
sage: E = EllipticCurve(GF((2^77-33, 2)), [1,0])
....: P, Q = E.gens()
....: pi = E.automorphisms()[-1]
....: %time pi.matrix_on_subgroup([P, Q])
```

Sage 10.5.beta7:
```
CPU times: user 13.8 s, sys: 32.5 ms, total: 13.8 s
```

This branch:
```
CPU times: user 48.1 ms, sys: 64 µs, total: 48.2 ms
```
    
URL: sagemath#38805
Reported by: Lorenz Panny
Reviewer(s): grhkm21
vbraun pushed a commit to vbraun/sage that referenced this pull request Oct 20, 2024
sagemathgh-38805: use specialized 2-dimensional .log() method in .matrix_on_subgroup()
    
This should be equivalent but faster (see sagemath#38347).

```sage
sage: E = EllipticCurve(GF((2^77-33, 2)), [1,0])
....: P, Q = E.gens()
....: pi = E.automorphisms()[-1]
....: %time pi.matrix_on_subgroup([P, Q])
```

Sage 10.5.beta7:
```
CPU times: user 13.8 s, sys: 32.5 ms, total: 13.8 s
```

This branch:
```
CPU times: user 48.1 ms, sys: 64 µs, total: 48.2 ms
```
    
URL: sagemath#38805
Reported by: Lorenz Panny
Reviewer(s): grhkm21
vbraun pushed a commit to vbraun/sage that referenced this pull request Oct 23, 2024
sagemathgh-38805: use specialized 2-dimensional .log() method in .matrix_on_subgroup()
    
This should be equivalent but faster (see sagemath#38347).

```sage
sage: E = EllipticCurve(GF((2^77-33, 2)), [1,0])
....: P, Q = E.gens()
....: pi = E.automorphisms()[-1]
....: %time pi.matrix_on_subgroup([P, Q])
```

Sage 10.5.beta7:
```
CPU times: user 13.8 s, sys: 32.5 ms, total: 13.8 s
```

This branch:
```
CPU times: user 48.1 ms, sys: 64 µs, total: 48.2 ms
```
    
URL: sagemath#38805
Reported by: Lorenz Panny
Reviewer(s): grhkm21
@vbraun vbraun merged commit 3e3fd15 into sagemath:develop Oct 26, 2024
@yyyyx4 yyyyx4 deleted the public/use_specialized_2dim_log_in_matrix_on_subgroup branch October 27, 2024 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants