-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into revert-1723-revert-1702-mh/qqbar
- Loading branch information
Showing
116 changed files
with
801 additions
and
653 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
function benchmark_charpoly_int() | ||
print("benchmark_charpoly_int ... ") | ||
M = matrix_space(FlintZZ, 80, 80)() | ||
M = matrix_space(ZZ, 80, 80)() | ||
|
||
for i in 1:80 | ||
for j in 1:80 | ||
M[i, j] = rand(-20:20) | ||
end | ||
end | ||
|
||
tt = @elapsed charpoly(polynomial_ring(FlintZZ, "x")[1], M) | ||
tt = @elapsed charpoly(polynomial_ring(ZZ, "x")[1], M) | ||
println("$tt") | ||
end |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,13 @@ | ||
include(joinpath(pathof(AbstractAlgebra), "..", "Aliases.jl")) | ||
# alternative names for some functions from Base | ||
# (this list contained stuff along the lines of `@alias is_equal isequal`, but everything has moved to AbstractAlgebra) | ||
|
||
# make some Julia names compatible with our naming conventions | ||
@alias is_equal isequal | ||
@alias is_finite isfinite | ||
@alias is_inf isinf | ||
@alias is_integer isinteger | ||
@alias is_less isless | ||
@alias is_real isreal | ||
|
||
@alias eigvals_simple eigenvalues_simple # for consistency with eigvals/eigenvalues | ||
# alternative names for some functions from LinearAlgebra | ||
# we don't use the `@alias` macro here because we provide custom | ||
# docstrings for these aliases | ||
const eigenvalues = eigvals | ||
|
||
# renamed for 0.40.0 | ||
Base.@deprecate_binding FlintPadicField PadicField | ||
Base.@deprecate_binding padic PadicFieldElem | ||
Base.@deprecate_binding FlintQadicField QadicField | ||
Base.@deprecate_binding qadic QadicFieldElem | ||
|
||
# renamed for 0.41.0 | ||
Base.@deprecate_binding arb_poly ArbPolyRingElem | ||
Base.@deprecate_binding arb_mat ArbMatrix | ||
Base.@deprecate_binding arb ArbFieldElem | ||
Base.@deprecate_binding acb_poly AcbPolyRingElem | ||
Base.@deprecate_binding acb_mat AcbMatrix | ||
Base.@deprecate_binding acb AcbFieldElem | ||
Base.@deprecate_binding ca CalciumFieldElem | ||
Base.@deprecate_binding Loc LocalizedEuclideanRing | ||
Base.@deprecate_binding LocElem LocalizedEuclideanRingElem | ||
Base.@deprecate_binding lll_ctx LLLContext | ||
Base.@deprecate_binding qqbar QQBarFieldElem | ||
Base.@deprecate_binding CalciumQQBarField QQBarField | ||
Base.@deprecate_binding FlintQQiField Nemo.QQiField false | ||
Base.@deprecate_binding fmpqi Nemo.QQiFieldElem false | ||
Base.@deprecate_binding FlintZZiRing Nemo.ZZiRing false | ||
Base.@deprecate_binding fmpzi Nemo.ZZiRingElem false | ||
Base.@deprecate_binding fmpzUnitRange ZZRingElemUnitRange | ||
Base.@deprecate_binding AnticNumberField AbsSimpleNumField | ||
Base.@deprecate_binding nf_elem AbsSimpleNumFieldElem | ||
# predeclare some functions to allow defining aliases for some of our own functions | ||
function eigenvalues_simple end | ||
@alias eigvals_simple eigenvalues_simple # for consistency with eigvals/eigenvalues |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,63 @@ | ||
# Deprecated in 0.39.* | ||
############################################################################### | ||
# | ||
# Aliases | ||
# | ||
############################################################################### | ||
|
||
# ALL aliases here are only a temporary measure to allow for a smooth transition downstream. | ||
# they will be replaced by deprecations eventually | ||
|
||
#= currently none =# | ||
|
||
############################################################################### | ||
# | ||
# Deprecated bindings | ||
# | ||
############################################################################### | ||
|
||
# Deprecated bindings don't get reexported automatically in Hecke/Oscar/etc. | ||
# By calling this macro from the respective packages, we can ensure that the deprecated bindings are available there. | ||
macro include_deprecated_bindings() | ||
return esc(quote | ||
# renamed and deprecated for 0.40.0 | ||
Base.@deprecate_binding FlintPadicField PadicField | ||
Base.@deprecate_binding padic PadicFieldElem | ||
Base.@deprecate_binding FlintQadicField QadicField | ||
Base.@deprecate_binding qadic QadicFieldElem | ||
|
||
# renamed and deprecated for 0.41.0 | ||
Base.@deprecate_binding arb_poly ArbPolyRingElem | ||
Base.@deprecate_binding arb_mat ArbMatrix | ||
Base.@deprecate_binding arb ArbFieldElem | ||
Base.@deprecate_binding acb_poly AcbPolyRingElem | ||
Base.@deprecate_binding acb_mat AcbMatrix | ||
Base.@deprecate_binding acb AcbFieldElem | ||
Base.@deprecate_binding ca CalciumFieldElem | ||
Base.@deprecate_binding Loc LocalizedEuclideanRing | ||
Base.@deprecate_binding LocElem LocalizedEuclideanRingElem | ||
Base.@deprecate_binding lll_ctx LLLContext | ||
Base.@deprecate_binding qqbar QQBarFieldElem | ||
Base.@deprecate_binding CalciumQQBarField QQBarField | ||
Base.@deprecate_binding FlintQQiField Nemo.QQiField false | ||
Base.@deprecate_binding fmpqi Nemo.QQiFieldElem false | ||
Base.@deprecate_binding FlintZZiRing Nemo.ZZiRing false | ||
Base.@deprecate_binding fmpzi Nemo.ZZiRingElem false | ||
Base.@deprecate_binding fmpzUnitRange ZZRingElemUnitRange | ||
Base.@deprecate_binding AnticNumberField AbsSimpleNumField | ||
Base.@deprecate_binding nf_elem AbsSimpleNumFieldElem | ||
|
||
end) | ||
end | ||
|
||
@include_deprecated_bindings() | ||
|
||
############################################################################### | ||
# | ||
# Deprecations | ||
# | ||
############################################################################### | ||
|
||
# Deprecated in 0.39.* | ||
@deprecate divisible(x::Int, y::Int) is_divisible_by(x, y) | ||
@deprecate divisible(x::ZZRingElem, y::Int) is_divisible_by(x, y) | ||
@deprecate divisible(x::ZZRingElem, y::ZZRingElem) is_divisible_by(x, y) |
Oops, something went wrong.