-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement is_squarefree for QQ/ZZPolyRingElem (#1742)
Before: julia> S, y = polynomial_ring(QQ, :y); g = 2*(y+1)^2; julia> @Btime is_squarefree(g) 516.927 ns (10 allocations: 400 bytes) false julia> R, x = polynomial_ring(ZZ, :x); f = 4*(x^2+1); julia> @Btime is_squarefree(f) 1.329 μs (38 allocations: 1.82 KiB) false After: julia> S, y = polynomial_ring(QQ, :y); g = 2*(y+1)^2; julia> @Btime is_squarefree(g) 53.596 ns (0 allocations: 0 bytes) false julia> R, x = polynomial_ring(ZZ, :x); f = 4*(x^2+1); julia> @Btime is_squarefree(f) 209.386 ns (4 allocations: 64 bytes) false
- Loading branch information
Showing
3 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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