From 79b1797b14478ed75aa23b5bb8f2e841e8d4faea Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Tue, 7 Nov 2023 21:03:59 -0800 Subject: [PATCH] sage.*.all*: Update from #35095 --- src/sage/algebras/all.py | 46 +--- src/sage/algebras/all__sagemath_combinat.py | 35 +++ src/sage/algebras/all__sagemath_modules.py | 11 + src/sage/algebras/all__sagemath_singular.py | 0 .../lie_algebras/all__sagemath_modules.py | 0 src/sage/algebras/steenrod/all.py | 2 +- src/sage/arith/all__sagemath_objects.py | 2 + src/sage/calculus/all.py | 35 +-- src/sage/calculus/all__sagemath_categories.py | 1 + src/sage/calculus/all__sagemath_modules.py | 17 ++ src/sage/coding/all__sagemath_gap.py | 0 src/sage/coding/codecan/all__sagemath_gap.py | 0 src/sage/combinat/all.py | 250 +----------------- src/sage/combinat/all__sagemath_categories.py | 29 ++ src/sage/combinat/all__sagemath_combinat.py | 197 ++++++++++++++ src/sage/combinat/all__sagemath_flint.py | 0 src/sage/combinat/all__sagemath_gap.py | 0 src/sage/combinat/all__sagemath_graphs.py | 31 +++ src/sage/combinat/all__sagemath_modules.py | 6 + src/sage/combinat/matrices/all.py | 6 +- .../matrices/all__sagemath_categories.py | 3 + src/sage/combinat/ncsf_qsym/all.py | 9 +- src/sage/combinat/ncsym/all.py | 9 +- .../combinat/posets/all__sagemath_flint.py | 0 src/sage/combinat/root_system/all.py | 6 +- .../combinat/root_system/all__sagemath_gap.py | 0 src/sage/combinat/words/all.py | 7 +- src/sage/data_structures/all.py | 3 +- .../all__sagemath_categories.py | 1 + .../data_structures/all__sagemath_combinat.py | 0 .../data_structures/all__sagemath_flint.py | 0 src/sage/databases/all__sagemath_graphs.py | 0 src/sage/dynamics/all.py | 9 +- src/sage/dynamics/all__sagemath_schemes.py | 1 + src/sage/dynamics/all__sagemath_symbolics.py | 4 + src/sage/ext/all__sagemath_categories.py | 2 + src/sage/ext/all__sagemath_modules.py | 0 src/sage/ext/all__sagemath_pari.py | 0 src/sage/ext/all__sagemath_symbolics.py | 0 src/sage/ext_data/all__sagemath_gap.py | 0 src/sage/ext_data/all__sagemath_singular.py | 0 src/sage/games/all.py | 6 +- src/sage/geometry/all.py | 29 +- src/sage/geometry/all__sagemath_categories.py | 0 src/sage/geometry/all__sagemath_gap.py | 4 + src/sage/geometry/all__sagemath_linbox.py | 0 src/sage/geometry/all__sagemath_modules.py | 3 + src/sage/geometry/all__sagemath_polyhedra.py | 19 ++ src/sage/geometry/all__sagemath_symbolics.py | 7 + src/sage/graphs/all__sagemath_flint.py | 0 src/sage/groups/abelian_gps/all.py | 9 +- .../groups/abelian_gps/all__sagemath_gap.py | 5 + .../abelian_gps/all__sagemath_modules.py | 4 + src/sage/groups/all.py | 41 +-- src/sage/groups/all__sagemath_categories.py | 10 + src/sage/groups/all__sagemath_combinat.py | 0 src/sage/groups/all__sagemath_gap.py | 3 + src/sage/groups/all__sagemath_graphs.py | 0 src/sage/groups/all__sagemath_groups.py | 29 ++ src/sage/groups/all__sagemath_modules.py | 10 + src/sage/groups/all__sagemath_objects.py | 0 src/sage/groups/all__sagemath_pari.py | 2 + src/sage/groups/matrix_gps/all.py | 12 +- .../groups/matrix_gps/all__sagemath_gap.py | 0 .../matrix_gps/all__sagemath_modules.py | 11 + .../perm_gps/all__sagemath_categories.py | 0 .../groups/perm_gps/all__sagemath_graphs.py | 0 .../groups/perm_gps/all__sagemath_modules.py | 0 .../partn_ref/all__sagemath_categories.py | 0 .../perm_gps/partn_ref/all__sagemath_gap.py | 0 .../partn_ref/all__sagemath_graphs.py | 0 .../partn_ref/all__sagemath_modules.py | 0 src/sage/homology/all.py | 7 +- src/sage/homology/all__sagemath_modules.py | 6 + .../interfaces/all__sagemath_categories.py | 0 src/sage/interfaces/all__sagemath_gap.py | 0 src/sage/interfaces/all__sagemath_libecm.py | 0 src/sage/interfaces/all__sagemath_pari.py | 0 src/sage/interfaces/all__sagemath_plot.py | 0 .../interfaces/all__sagemath_symbolics.py | 0 src/sage/lfunctions/all__sagemath_lcalc.py | 0 src/sage/libs/all.py | 30 +-- src/sage/libs/all__sagemath_brial.py | 0 src/sage/libs/all__sagemath_combinat.py | 5 + src/sage/libs/all__sagemath_eclib.py | 10 + src/sage/libs/all__sagemath_flint.py | 16 ++ src/sage/libs/all__sagemath_gap.py | 0 src/sage/libs/all__sagemath_giac.py | 0 src/sage/libs/all__sagemath_glpk.py | 0 src/sage/libs/all__sagemath_homfly.py | 0 src/sage/libs/all__sagemath_lcalc.py | 0 src/sage/libs/all__sagemath_libbraiding.py | 0 src/sage/libs/all__sagemath_libecm.py | 0 src/sage/libs/all__sagemath_linbox.py | 0 src/sage/libs/all__sagemath_modules.py | 0 src/sage/libs/all__sagemath_mpmath.py | 0 src/sage/libs/all__sagemath_ntl.py | 2 + src/sage/libs/all__sagemath_pari.py | 1 + src/sage/libs/all__sagemath_singular.py | 0 src/sage/libs/all__sagemath_symbolics.py | 3 + src/sage/libs/pari/all__sagemath_flint.py | 0 src/sage/matrix/all__sagemath_flint.py | 0 src/sage/matrix/all__sagemath_gap.py | 0 src/sage/matrix/all__sagemath_linbox.py | 0 src/sage/matrix/all__sagemath_ntl.py | 0 src/sage/matrix/all__sagemath_singular.py | 0 src/sage/matrix/all__sagemath_symbolics.py | 0 src/sage/misc/all.py | 138 +--------- src/sage/misc/all__sagemath_categories.py | 80 ++++++ src/sage/misc/all__sagemath_modules.py | 21 ++ src/sage/misc/all__sagemath_ntl.py | 0 src/sage/misc/all__sagemath_objects.py | 9 + src/sage/misc/all__sagemath_repl.py | 40 +++ src/sage/modules/all__sagemath_linbox.py | 0 src/sage/modules/all__sagemath_objects.py | 0 src/sage/modules/all__sagemath_symbolics.py | 0 src/sage/monoids/all__sagemath_categories.py | 0 src/sage/numerical/all.py | 6 +- .../numerical/all__sagemath_categories.py | 0 src/sage/numerical/all__sagemath_glpk.py | 0 src/sage/numerical/all__sagemath_modules.py | 4 + .../backends/all__sagemath_categories.py | 0 .../numerical/backends/all__sagemath_glpk.py | 0 src/sage/plot/all.py | 4 +- src/sage/quadratic_forms/all.py | 18 +- .../quadratic_forms/all__sagemath_modules.py | 12 + .../quadratic_forms/all__sagemath_pari.py | 5 + src/sage/rings/all.py | 144 +--------- src/sage/rings/all__sagemath_brial.py | 0 src/sage/rings/all__sagemath_categories.py | 74 +++++- src/sage/rings/all__sagemath_combinat.py | 9 + src/sage/rings/all__sagemath_flint.py | 34 +++ src/sage/rings/all__sagemath_gap.py | 6 + src/sage/rings/all__sagemath_linbox.py | 0 src/sage/rings/all__sagemath_modules.py | 24 ++ src/sage/rings/all__sagemath_ntl.py | 6 + src/sage/rings/all__sagemath_pari.py | 12 + src/sage/rings/all__sagemath_singular.py | 0 src/sage/rings/all__sagemath_symbolics.py | 1 + src/sage/rings/finite_rings/all.py | 4 +- .../finite_rings/all__sagemath_categories.py | 8 + .../finite_rings/all__sagemath_linbox.py | 0 .../finite_rings/all__sagemath_modules.py | 0 .../rings/finite_rings/all__sagemath_ntl.py | 0 .../rings/finite_rings/all__sagemath_pari.py | 0 src/sage/rings/function_field/all.py | 7 +- .../all__sagemath_categories.py | 1 + .../function_field/all__sagemath_modules.py | 1 + .../function_field/all__sagemath_pari.py | 0 .../function_field/all__sagemath_singular.py | 0 .../function_field/all__sagemath_symbolics.py | 1 + .../number_field/all__sagemath_categories.py | 0 .../rings/number_field/all__sagemath_flint.py | 0 .../rings/number_field/all__sagemath_pari.py | 0 src/sage/rings/padics/all.py | 8 +- .../rings/padics/all__sagemath_categories.py | 1 + src/sage/rings/padics/all__sagemath_flint.py | 2 + src/sage/rings/padics/all__sagemath_ntl.py | 4 + src/sage/rings/padics/all__sagemath_pari.py | 10 + src/sage/rings/polynomial/all.py | 25 +- .../rings/polynomial/all__sagemath_brial.py | 0 .../polynomial/all__sagemath_categories.py | 21 ++ .../rings/polynomial/all__sagemath_flint.py | 0 .../rings/polynomial/all__sagemath_linbox.py | 0 .../rings/polynomial/all__sagemath_modules.py | 6 + .../rings/polynomial/all__sagemath_ntl.py | 0 .../rings/polynomial/all__sagemath_pari.py | 0 .../polynomial/all__sagemath_singular.py | 0 .../polynomial/all__sagemath_symbolics.py | 0 src/sage/schemes/all.py | 12 +- src/sage/schemes/all__sagemath_categories.py | 4 + src/sage/schemes/all__sagemath_ntl.py | 0 src/sage/schemes/all__sagemath_polyhedra.py | 1 + .../hyperelliptic_curves/all__sagemath_ntl.py | 0 src/sage/stats/all.py | 8 +- src/sage/symbolic/all__sagemath_categories.py | 0 .../all__sagemath_standard_no_symbolics.py | 0 177 files changed, 1009 insertions(+), 768 deletions(-) create mode 100644 src/sage/algebras/all__sagemath_combinat.py create mode 100644 src/sage/algebras/all__sagemath_modules.py create mode 100644 src/sage/algebras/all__sagemath_singular.py create mode 100644 src/sage/algebras/lie_algebras/all__sagemath_modules.py create mode 100644 src/sage/calculus/all__sagemath_categories.py create mode 100644 src/sage/calculus/all__sagemath_modules.py create mode 100644 src/sage/coding/all__sagemath_gap.py create mode 100644 src/sage/coding/codecan/all__sagemath_gap.py create mode 100644 src/sage/combinat/all__sagemath_categories.py create mode 100644 src/sage/combinat/all__sagemath_combinat.py create mode 100644 src/sage/combinat/all__sagemath_flint.py create mode 100644 src/sage/combinat/all__sagemath_gap.py create mode 100644 src/sage/combinat/all__sagemath_graphs.py create mode 100644 src/sage/combinat/all__sagemath_modules.py create mode 100644 src/sage/combinat/matrices/all__sagemath_categories.py create mode 100644 src/sage/combinat/posets/all__sagemath_flint.py create mode 100644 src/sage/combinat/root_system/all__sagemath_gap.py create mode 100644 src/sage/data_structures/all__sagemath_categories.py create mode 100644 src/sage/data_structures/all__sagemath_combinat.py create mode 100644 src/sage/data_structures/all__sagemath_flint.py create mode 100644 src/sage/databases/all__sagemath_graphs.py create mode 100644 src/sage/dynamics/all__sagemath_schemes.py create mode 100644 src/sage/dynamics/all__sagemath_symbolics.py create mode 100644 src/sage/ext/all__sagemath_categories.py create mode 100644 src/sage/ext/all__sagemath_modules.py create mode 100644 src/sage/ext/all__sagemath_pari.py create mode 100644 src/sage/ext/all__sagemath_symbolics.py create mode 100644 src/sage/ext_data/all__sagemath_gap.py create mode 100644 src/sage/ext_data/all__sagemath_singular.py create mode 100644 src/sage/geometry/all__sagemath_categories.py create mode 100644 src/sage/geometry/all__sagemath_gap.py create mode 100644 src/sage/geometry/all__sagemath_linbox.py create mode 100644 src/sage/geometry/all__sagemath_modules.py create mode 100644 src/sage/geometry/all__sagemath_polyhedra.py create mode 100644 src/sage/geometry/all__sagemath_symbolics.py create mode 100644 src/sage/graphs/all__sagemath_flint.py create mode 100644 src/sage/groups/abelian_gps/all__sagemath_gap.py create mode 100644 src/sage/groups/abelian_gps/all__sagemath_modules.py create mode 100644 src/sage/groups/all__sagemath_categories.py create mode 100644 src/sage/groups/all__sagemath_combinat.py create mode 100644 src/sage/groups/all__sagemath_gap.py create mode 100644 src/sage/groups/all__sagemath_graphs.py create mode 100644 src/sage/groups/all__sagemath_groups.py create mode 100644 src/sage/groups/all__sagemath_modules.py create mode 100644 src/sage/groups/all__sagemath_objects.py create mode 100644 src/sage/groups/all__sagemath_pari.py create mode 100644 src/sage/groups/matrix_gps/all__sagemath_gap.py create mode 100644 src/sage/groups/matrix_gps/all__sagemath_modules.py create mode 100644 src/sage/groups/perm_gps/all__sagemath_categories.py create mode 100644 src/sage/groups/perm_gps/all__sagemath_graphs.py create mode 100644 src/sage/groups/perm_gps/all__sagemath_modules.py create mode 100644 src/sage/groups/perm_gps/partn_ref/all__sagemath_categories.py create mode 100644 src/sage/groups/perm_gps/partn_ref/all__sagemath_gap.py create mode 100644 src/sage/groups/perm_gps/partn_ref/all__sagemath_graphs.py create mode 100644 src/sage/groups/perm_gps/partn_ref/all__sagemath_modules.py create mode 100644 src/sage/homology/all__sagemath_modules.py create mode 100644 src/sage/interfaces/all__sagemath_categories.py create mode 100644 src/sage/interfaces/all__sagemath_gap.py create mode 100644 src/sage/interfaces/all__sagemath_libecm.py create mode 100644 src/sage/interfaces/all__sagemath_pari.py create mode 100644 src/sage/interfaces/all__sagemath_plot.py create mode 100644 src/sage/interfaces/all__sagemath_symbolics.py create mode 100644 src/sage/lfunctions/all__sagemath_lcalc.py create mode 100644 src/sage/libs/all__sagemath_brial.py create mode 100644 src/sage/libs/all__sagemath_combinat.py create mode 100644 src/sage/libs/all__sagemath_eclib.py create mode 100644 src/sage/libs/all__sagemath_flint.py create mode 100644 src/sage/libs/all__sagemath_gap.py create mode 100644 src/sage/libs/all__sagemath_giac.py create mode 100644 src/sage/libs/all__sagemath_glpk.py create mode 100644 src/sage/libs/all__sagemath_homfly.py create mode 100644 src/sage/libs/all__sagemath_lcalc.py create mode 100644 src/sage/libs/all__sagemath_libbraiding.py create mode 100644 src/sage/libs/all__sagemath_libecm.py create mode 100644 src/sage/libs/all__sagemath_linbox.py create mode 100644 src/sage/libs/all__sagemath_modules.py create mode 100644 src/sage/libs/all__sagemath_mpmath.py create mode 100644 src/sage/libs/all__sagemath_ntl.py create mode 100644 src/sage/libs/all__sagemath_pari.py create mode 100644 src/sage/libs/all__sagemath_singular.py create mode 100644 src/sage/libs/all__sagemath_symbolics.py create mode 100644 src/sage/libs/pari/all__sagemath_flint.py create mode 100644 src/sage/matrix/all__sagemath_flint.py create mode 100644 src/sage/matrix/all__sagemath_gap.py create mode 100644 src/sage/matrix/all__sagemath_linbox.py create mode 100644 src/sage/matrix/all__sagemath_ntl.py create mode 100644 src/sage/matrix/all__sagemath_singular.py create mode 100644 src/sage/matrix/all__sagemath_symbolics.py create mode 100644 src/sage/misc/all__sagemath_categories.py create mode 100644 src/sage/misc/all__sagemath_modules.py create mode 100644 src/sage/misc/all__sagemath_ntl.py create mode 100644 src/sage/modules/all__sagemath_linbox.py create mode 100644 src/sage/modules/all__sagemath_objects.py create mode 100644 src/sage/modules/all__sagemath_symbolics.py create mode 100644 src/sage/monoids/all__sagemath_categories.py create mode 100644 src/sage/numerical/all__sagemath_categories.py create mode 100644 src/sage/numerical/all__sagemath_glpk.py create mode 100644 src/sage/numerical/all__sagemath_modules.py create mode 100644 src/sage/numerical/backends/all__sagemath_categories.py create mode 100644 src/sage/numerical/backends/all__sagemath_glpk.py create mode 100644 src/sage/quadratic_forms/all__sagemath_modules.py create mode 100644 src/sage/quadratic_forms/all__sagemath_pari.py create mode 100644 src/sage/rings/all__sagemath_brial.py create mode 100644 src/sage/rings/all__sagemath_combinat.py create mode 100644 src/sage/rings/all__sagemath_flint.py create mode 100644 src/sage/rings/all__sagemath_gap.py create mode 100644 src/sage/rings/all__sagemath_linbox.py create mode 100644 src/sage/rings/all__sagemath_modules.py create mode 100644 src/sage/rings/all__sagemath_ntl.py create mode 100644 src/sage/rings/all__sagemath_pari.py create mode 100644 src/sage/rings/all__sagemath_singular.py create mode 100644 src/sage/rings/all__sagemath_symbolics.py create mode 100644 src/sage/rings/finite_rings/all__sagemath_categories.py create mode 100644 src/sage/rings/finite_rings/all__sagemath_linbox.py create mode 100644 src/sage/rings/finite_rings/all__sagemath_modules.py create mode 100644 src/sage/rings/finite_rings/all__sagemath_ntl.py create mode 100644 src/sage/rings/finite_rings/all__sagemath_pari.py create mode 100644 src/sage/rings/function_field/all__sagemath_categories.py create mode 100644 src/sage/rings/function_field/all__sagemath_modules.py create mode 100644 src/sage/rings/function_field/all__sagemath_pari.py create mode 100644 src/sage/rings/function_field/all__sagemath_singular.py create mode 100644 src/sage/rings/function_field/all__sagemath_symbolics.py create mode 100644 src/sage/rings/number_field/all__sagemath_categories.py create mode 100644 src/sage/rings/number_field/all__sagemath_flint.py create mode 100644 src/sage/rings/number_field/all__sagemath_pari.py create mode 100644 src/sage/rings/padics/all__sagemath_categories.py create mode 100644 src/sage/rings/padics/all__sagemath_flint.py create mode 100644 src/sage/rings/padics/all__sagemath_ntl.py create mode 100644 src/sage/rings/padics/all__sagemath_pari.py create mode 100644 src/sage/rings/polynomial/all__sagemath_brial.py create mode 100644 src/sage/rings/polynomial/all__sagemath_categories.py create mode 100644 src/sage/rings/polynomial/all__sagemath_flint.py create mode 100644 src/sage/rings/polynomial/all__sagemath_linbox.py create mode 100644 src/sage/rings/polynomial/all__sagemath_modules.py create mode 100644 src/sage/rings/polynomial/all__sagemath_ntl.py create mode 100644 src/sage/rings/polynomial/all__sagemath_pari.py create mode 100644 src/sage/rings/polynomial/all__sagemath_singular.py create mode 100644 src/sage/rings/polynomial/all__sagemath_symbolics.py create mode 100644 src/sage/schemes/all__sagemath_categories.py create mode 100644 src/sage/schemes/all__sagemath_ntl.py create mode 100644 src/sage/schemes/all__sagemath_polyhedra.py create mode 100644 src/sage/schemes/hyperelliptic_curves/all__sagemath_ntl.py create mode 100644 src/sage/symbolic/all__sagemath_categories.py create mode 100644 src/sage/symbolic/all__sagemath_standard_no_symbolics.py diff --git a/src/sage/algebras/all.py b/src/sage/algebras/all.py index 14be60e8f56..e02672ac54a 100644 --- a/src/sage/algebras/all.py +++ b/src/sage/algebras/all.py @@ -18,52 +18,10 @@ #***************************************************************************** from sage.misc.lazy_import import lazy_import -import sage.algebras.catalog as algebras +from .all__sagemath_modules import * +from .all__sagemath_combinat import * from .quatalg.all import * -from .steenrod.all import * from .fusion_rings.all import * from .lie_algebras.all import * -from .quantum_groups.all import * from .lie_conformal_algebras.all import * - -# Algebra base classes -from .algebra import Algebra -from .free_algebra import FreeAlgebra -from .free_algebra_quotient import FreeAlgebraQuotient - - -from .finite_dimensional_algebras.all import FiniteDimensionalAlgebra - -lazy_import('sage.algebras.group_algebra', 'GroupAlgebra') - -lazy_import('sage.algebras.iwahori_hecke_algebra', 'IwahoriHeckeAlgebra') -lazy_import('sage.algebras.affine_nil_temperley_lieb', - 'AffineNilTemperleyLiebTypeA') -lazy_import('sage.algebras.nil_coxeter_algebra', 'NilCoxeterAlgebra') -lazy_import('sage.algebras.schur_algebra', ['SchurAlgebra', - 'SchurTensorModule']) - -lazy_import('sage.algebras.hall_algebra', 'HallAlgebra') - -lazy_import('sage.algebras.jordan_algebra', 'JordanAlgebra') - -lazy_import('sage.algebras.octonion_algebra', 'OctonionAlgebra') - -lazy_import('sage.algebras.shuffle_algebra', 'ShuffleAlgebra') - -from .clifford_algebra import CliffordAlgebra, ExteriorAlgebra -from .weyl_algebra import DifferentialWeylAlgebra - -lazy_import('sage.algebras.commutative_dga', 'GradedCommutativeAlgebra') - -lazy_import('sage.algebras.rational_cherednik_algebra', - 'RationalCherednikAlgebra') - -lazy_import('sage.algebras.tensor_algebra', 'TensorAlgebra') - -lazy_import('sage.algebras.q_system', 'QSystem') - -lazy_import('sage.algebras.cluster_algebra', 'ClusterAlgebra') - -lazy_import('sage.algebras.yangian', 'Yangian') diff --git a/src/sage/algebras/all__sagemath_combinat.py b/src/sage/algebras/all__sagemath_combinat.py new file mode 100644 index 00000000000..23e1bd4217b --- /dev/null +++ b/src/sage/algebras/all__sagemath_combinat.py @@ -0,0 +1,35 @@ +from sage.misc.lazy_import import lazy_import + + +# Algebra base classes +lazy_import('sage.algebras.free_algebra', 'FreeAlgebra') +lazy_import('sage.algebras.free_algebra_quotient', 'FreeAlgebraQuotient') + +from .steenrod.all import * +from .quantum_groups.all import * + +lazy_import('sage.algebras.iwahori_hecke_algebra', 'IwahoriHeckeAlgebra') +lazy_import('sage.algebras.affine_nil_temperley_lieb', + 'AffineNilTemperleyLiebTypeA') +lazy_import('sage.algebras.nil_coxeter_algebra', 'NilCoxeterAlgebra') +lazy_import('sage.algebras.schur_algebra', ['SchurAlgebra', + 'SchurTensorModule']) + +lazy_import('sage.algebras.hall_algebra', 'HallAlgebra') + +lazy_import('sage.algebras.jordan_algebra', 'JordanAlgebra') + +lazy_import('sage.algebras.shuffle_algebra', 'ShuffleAlgebra') + +lazy_import('sage.algebras.commutative_dga', 'GradedCommutativeAlgebra') + +lazy_import('sage.algebras.rational_cherednik_algebra', + 'RationalCherednikAlgebra') + +lazy_import('sage.algebras.tensor_algebra', 'TensorAlgebra') + +lazy_import('sage.algebras.q_system', 'QSystem') + +lazy_import('sage.algebras.cluster_algebra', 'ClusterAlgebra') + +lazy_import('sage.algebras.yangian', 'Yangian') diff --git a/src/sage/algebras/all__sagemath_modules.py b/src/sage/algebras/all__sagemath_modules.py new file mode 100644 index 00000000000..d52f918d1a1 --- /dev/null +++ b/src/sage/algebras/all__sagemath_modules.py @@ -0,0 +1,11 @@ +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.algebras.group_algebra', 'GroupAlgebra') + +from .algebra import Algebra +from .finite_dimensional_algebras.all import FiniteDimensionalAlgebra +from .clifford_algebra import CliffordAlgebra, ExteriorAlgebra +from .weyl_algebra import DifferentialWeylAlgebra +lazy_import('sage.algebras.octonion_algebra', 'OctonionAlgebra') + +import sage.algebras.catalog as algebras diff --git a/src/sage/algebras/all__sagemath_singular.py b/src/sage/algebras/all__sagemath_singular.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/algebras/lie_algebras/all__sagemath_modules.py b/src/sage/algebras/lie_algebras/all__sagemath_modules.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/algebras/steenrod/all.py b/src/sage/algebras/steenrod/all.py index 134b2b032cf..387a88ec6e1 100644 --- a/src/sage/algebras/steenrod/all.py +++ b/src/sage/algebras/steenrod/all.py @@ -1,8 +1,8 @@ """ The Steenrod algebra """ -from .steenrod_algebra import SteenrodAlgebra, Sq from sage.misc.lazy_import import lazy_import +lazy_import('sage.algebras.steenrod.steenrod_algebra', ['SteenrodAlgebra', 'Sq']) lazy_import('sage.algebras.steenrod.steenrod_algebra_bases', 'steenrod_algebra_basis', deprecation=(32647, 'removed from namespace')) diff --git a/src/sage/arith/all__sagemath_objects.py b/src/sage/arith/all__sagemath_objects.py index 38e44245ad3..ccd64831912 100644 --- a/src/sage/arith/all__sagemath_objects.py +++ b/src/sage/arith/all__sagemath_objects.py @@ -1,2 +1,4 @@ # The presence of this file ensures that sage_setup for sagemath-objects # considers this directory as a namespace package + +from sage.arith.power import generic_power as power diff --git a/src/sage/calculus/all.py b/src/sage/calculus/all.py index c83a97f6eb4..7f77f5c8dd3 100644 --- a/src/sage/calculus/all.py +++ b/src/sage/calculus/all.py @@ -1,21 +1,11 @@ +from .all__sagemath_modules import * + +from sage.misc.lazy_import import lazy_import from .calculus import maxima as maxima_calculus from .calculus import (laplace, inverse_laplace, limit, lim) -from .integration import numerical_integral, monte_carlo_integral -integral_numerical = numerical_integral - -from .interpolation import spline, Spline - -from .functional import (diff, derivative, - expand, - taylor, simplify) - -from .functions import (wronskian, jacobian) - -from .ode import ode_solver, ode_system - from .desolvers import (desolve, desolve_laplace, desolve_system, eulers_method, eulers_method_2x2, eulers_method_2x2_plot, desolve_rk4, desolve_system_rk4, @@ -23,15 +13,8 @@ from .var import (var, function, clear_vars) -from .transforms.all import * - -# We lazy_import the following modules since they import numpy which slows down sage startup -from sage.misc.lazy_import import lazy_import -lazy_import("sage.calculus.riemann", ["Riemann_Map"]) -lazy_import("sage.calculus.interpolators", ["polygon_spline", "complex_cubic_spline"]) - -from sage.modules.free_module_element import vector -from sage.matrix.constructor import matrix +lazy_import('sage.modules.free_module_element', ['vector', 'FreeModuleElement']) +lazy_import('sage.matrix.constructor', 'matrix') def symbolic_expression(x): @@ -68,6 +51,7 @@ def symbolic_expression(x): Note that equations exist in the symbolic ring:: + sage: # needs sage.schemes sage: E = EllipticCurve('15a'); E Elliptic Curve defined by y^2 + x*y + y = x^3 + x^2 - 10*x - 10 over Rational Field sage: symbolic_expression(E) @@ -188,21 +172,20 @@ def symbolic_expression(x): TypeError: unable to convert to a symbolic expression """ + from sage.structure.element import is_Matrix from sage.symbolic.expression import Expression from sage.symbolic.ring import SR - from sage.modules.free_module_element import is_FreeModuleElement - from sage.structure.element import is_Matrix if isinstance(x, Expression): return x elif hasattr(x, '_symbolic_'): return x._symbolic_(SR) - elif isinstance(x, (tuple, list)) or is_FreeModuleElement(x): + elif isinstance(x, (tuple, list, FreeModuleElement)): expressions = [symbolic_expression(item) for item in x] if not expressions: # Make sure it is symbolic also when length is 0 return vector(SR, 0) - if is_FreeModuleElement(expressions[0]): + if isinstance(expressions[0], FreeModuleElement): return matrix(expressions) return vector(expressions) elif is_Matrix(x): diff --git a/src/sage/calculus/all__sagemath_categories.py b/src/sage/calculus/all__sagemath_categories.py new file mode 100644 index 00000000000..63e6cb18214 --- /dev/null +++ b/src/sage/calculus/all__sagemath_categories.py @@ -0,0 +1 @@ +from .functional import diff, derivative, expand, simplify, taylor diff --git a/src/sage/calculus/all__sagemath_modules.py b/src/sage/calculus/all__sagemath_modules.py new file mode 100644 index 00000000000..cf51c475f98 --- /dev/null +++ b/src/sage/calculus/all__sagemath_modules.py @@ -0,0 +1,17 @@ +from .all__sagemath_categories import * + +from .integration import numerical_integral, monte_carlo_integral +integral_numerical = numerical_integral + +from .interpolation import spline, Spline + +from .functions import wronskian, jacobian + +from .ode import ode_solver, ode_system + +# We lazy_import the following modules since they import numpy which slows down sage startup +from sage.misc.lazy_import import lazy_import +lazy_import("sage.calculus.riemann", ["Riemann_Map"]) +lazy_import("sage.calculus.interpolators", ["polygon_spline","complex_cubic_spline"]) + +from .transforms.all import * diff --git a/src/sage/coding/all__sagemath_gap.py b/src/sage/coding/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/coding/codecan/all__sagemath_gap.py b/src/sage/coding/codecan/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/combinat/all.py b/src/sage/combinat/all.py index 79690ff7305..acef92816fe 100644 --- a/src/sage/combinat/all.py +++ b/src/sage/combinat/all.py @@ -56,250 +56,6 @@ from sage.misc.lazy_import import lazy_import -from .combinat import (CombinatorialClass, CombinatorialObject, - MapCombinatorialClass, - bell_number, bell_polynomial, bernoulli_polynomial, - catalan_number, euler_number, - fibonacci, fibonacci_sequence, fibonacci_xrange, - lucas_number1, lucas_number2, - number_of_tuples, number_of_unordered_tuples, - polygonal_number, stirling_number1, stirling_number2, - tuples, unordered_tuples) - -lazy_import('sage.combinat.combinat', - ('InfiniteAbstractCombinatorialClass', 'UnionCombinatorialClass', - 'FilteredCombinatorialClass'), - deprecation=(31545, 'this class is deprecated, do not use')) - - -from .expnums import expnums - -from sage.combinat.chas.all import * -from sage.combinat.crystals.all import * -from .rigged_configurations.all import * - -from sage.combinat.dlx import DLXMatrix, AllExactCovers, OneExactCover - -# block designs, etc -from sage.combinat.designs.all import * - -# Free modules and friends -from .free_module import CombinatorialFreeModule -from .debruijn_sequence import DeBruijnSequences - -from .schubert_polynomial import SchubertPolynomialRing -lazy_import('sage.combinat.key_polynomial', 'KeyPolynomialBasis', as_='KeyPolynomials') -from .symmetric_group_algebra import SymmetricGroupAlgebra, HeckeAlgebraSymmetricGroupT -from .symmetric_group_representations import SymmetricGroupRepresentation, SymmetricGroupRepresentations -from .yang_baxter_graph import YangBaxterGraph - -# Permutations -from .permutation import Permutation, Permutations, Arrangements, CyclicPermutations, CyclicPermutationsOfPartition -from .affine_permutation import AffinePermutationGroup -lazy_import('sage.combinat.colored_permutations', ['ColoredPermutations', - 'SignedPermutation', - 'SignedPermutations']) -from .derangements import Derangements -lazy_import('sage.combinat.baxter_permutations', ['BaxterPermutations']) - -# RSK -from .rsk import RSK, RSK_inverse, robinson_schensted_knuth, robinson_schensted_knuth_inverse, InsertionRules - -# HillmanGrassl -lazy_import("sage.combinat.hillman_grassl", ["WeakReversePlanePartition", "WeakReversePlanePartitions"]) - -# PerfectMatchings -from .perfect_matching import PerfectMatching, PerfectMatchings - -# Integer lists -from .integer_lists import IntegerListsLex - -# Compositions -from .composition import Composition, Compositions -from .composition_signed import SignedCompositions - -# Partitions -from .partition import (Partition, Partitions, PartitionsInBox, - OrderedPartitions, PartitionsGreatestLE, - PartitionsGreatestEQ, number_of_partitions) - -lazy_import('sage.combinat.partition_tuple', ['PartitionTuple', 'PartitionTuples']) -lazy_import('sage.combinat.partition_kleshchev', ['KleshchevPartitions']) -lazy_import('sage.combinat.skew_partition', ['SkewPartition', 'SkewPartitions']) - -# Partition algebra -from .partition_algebra import SetPartitionsAk, SetPartitionsPk, SetPartitionsTk, SetPartitionsIk, SetPartitionsBk, SetPartitionsSk, SetPartitionsRk, SetPartitionsPRk - -# Raising operators -lazy_import('sage.combinat.partition_shifting_algebras', 'ShiftingOperatorAlgebra') - -# Diagram algebra -from .diagram_algebras import PartitionAlgebra, BrauerAlgebra, TemperleyLiebAlgebra, PlanarAlgebra, PropagatingIdeal - -# Descent algebra -lazy_import('sage.combinat.descent_algebra', 'DescentAlgebra') - -# Vector Partitions -lazy_import('sage.combinat.vector_partition', - ['VectorPartition', 'VectorPartitions']) - -# Similarity class types -from .similarity_class_type import PrimarySimilarityClassType, PrimarySimilarityClassTypes, SimilarityClassType, SimilarityClassTypes - -# Cores -from .core import Core, Cores - -# Tableaux -lazy_import('sage.combinat.tableau', - ["Tableau", "SemistandardTableau", "StandardTableau", "RowStandardTableau", "IncreasingTableau", - "Tableaux", "SemistandardTableaux", "StandardTableaux", "RowStandardTableaux", "IncreasingTableaux"]) -from .skew_tableau import SkewTableau, SkewTableaux, StandardSkewTableaux, SemistandardSkewTableaux -from .ribbon_shaped_tableau import RibbonShapedTableau, RibbonShapedTableaux, StandardRibbonShapedTableaux -from .ribbon_tableau import RibbonTableaux, RibbonTableau, MultiSkewTableaux, MultiSkewTableau, SemistandardMultiSkewTableaux -from .composition_tableau import CompositionTableau, CompositionTableaux - -lazy_import('sage.combinat.tableau_tuple', - ['TableauTuple', 'StandardTableauTuple', 'RowStandardTableauTuple', - 'TableauTuples', 'StandardTableauTuples', 'RowStandardTableauTuples']) -from .k_tableau import WeakTableau, WeakTableaux, StrongTableau, StrongTableaux -lazy_import('sage.combinat.lr_tableau', ['LittlewoodRichardsonTableau', - 'LittlewoodRichardsonTableaux']) -lazy_import('sage.combinat.shifted_primed_tableau', ['ShiftedPrimedTableaux', - 'ShiftedPrimedTableau']) - -# SuperTableaux -lazy_import('sage.combinat.super_tableau', - ["StandardSuperTableau", "SemistandardSuperTableau", "StandardSuperTableaux", "SemistandardSuperTableaux"]) - -# Words -from .words.all import * - -lazy_import('sage.combinat.subword', 'Subwords') - -from .graph_path import GraphPaths - -# Tuples -from .tuple import Tuples, UnorderedTuples - -# Alternating sign matrices -lazy_import('sage.combinat.alternating_sign_matrix', ('AlternatingSignMatrix', - 'AlternatingSignMatrices', - 'MonotoneTriangles', - 'ContreTableaux', - 'TruncatedStaircases')) - -# Decorated Permutations -lazy_import('sage.combinat.decorated_permutation', ('DecoratedPermutation', - 'DecoratedPermutations')) - -# Plane Partitions -lazy_import('sage.combinat.plane_partition', ('PlanePartition', - 'PlanePartitions')) - -# Parking Functions -lazy_import('sage.combinat.non_decreasing_parking_function', - ['NonDecreasingParkingFunctions', 'NonDecreasingParkingFunction']) -lazy_import('sage.combinat.parking_functions', - ['ParkingFunctions', 'ParkingFunction']) - -# Trees and Tamari interval posets -from .ordered_tree import (OrderedTree, OrderedTrees, - LabelledOrderedTree, LabelledOrderedTrees) -from .binary_tree import (BinaryTree, BinaryTrees, - LabelledBinaryTree, LabelledBinaryTrees) -lazy_import('sage.combinat.interval_posets', ['TamariIntervalPoset', 'TamariIntervalPosets']) -lazy_import('sage.combinat.rooted_tree', ('RootedTree', 'RootedTrees', - 'LabelledRootedTree', 'LabelledRootedTrees')) - -from .combination import Combinations - -from .set_partition import SetPartition, SetPartitions -from .set_partition_ordered import OrderedSetPartition, OrderedSetPartitions -lazy_import('sage.combinat.multiset_partition_into_sets_ordered', - ['OrderedMultisetPartitionIntoSets', - 'OrderedMultisetPartitionsIntoSets']) -from .subset import Subsets, subsets, powerset, uniq -from .necklace import Necklaces -lazy_import('sage.combinat.dyck_word', ('DyckWords', 'DyckWord')) -lazy_import('sage.combinat.nu_dyck_word', ('NuDyckWords', 'NuDyckWord')) -from .sloane_functions import sloane -lazy_import('sage.combinat.superpartition', ('SuperPartition', - 'SuperPartitions')) - -lazy_import('sage.combinat.parallelogram_polyomino', - ['ParallelogramPolyomino', 'ParallelogramPolyominoes']) - -from .root_system.all import * -from .sf.all import * -from .ncsf_qsym.all import * -from .ncsym.all import * -lazy_import('sage.combinat.fqsym', 'FreeQuasisymmetricFunctions') -from .matrices.all import * -# Posets -from .posets.all import * - -# Cluster Algebras and Quivers -from .cluster_algebra_quiver.all import * - -from . import ranker - -from .integer_vector import IntegerVectors -from .integer_vector_weighted import WeightedIntegerVectors -from .integer_vectors_mod_permgroup import IntegerVectorsModPermutationGroup - -lazy_import('sage.combinat.q_analogues', ['gaussian_binomial', 'q_binomial']) - -from .species.all import * - -lazy_import('sage.combinat.kazhdan_lusztig', 'KazhdanLusztigPolynomial') - -lazy_import('sage.combinat.degree_sequences', 'DegreeSequences') - -lazy_import('sage.combinat.cyclic_sieving_phenomenon', - ['CyclicSievingPolynomial', 'CyclicSievingCheck']) - -lazy_import('sage.combinat.sidon_sets', 'sidon_sets') - -# Puzzles -lazy_import('sage.combinat.knutson_tao_puzzles', 'KnutsonTaoPuzzleSolver') - -# Gelfand-Tsetlin patterns -lazy_import('sage.combinat.gelfand_tsetlin_patterns', - ['GelfandTsetlinPattern', 'GelfandTsetlinPatterns']) - -# Finite State Machines (Automaton, Transducer) -lazy_import('sage.combinat.finite_state_machine', - ['Automaton', 'Transducer', 'FiniteStateMachine']) -lazy_import('sage.combinat.finite_state_machine_generators', - ['automata', 'transducers']) - -# Sequences -lazy_import('sage.combinat.binary_recurrence_sequences', - 'BinaryRecurrenceSequence') -lazy_import('sage.combinat.recognizable_series', 'RecognizableSeriesSpace') -lazy_import('sage.combinat.regular_sequence', 'RegularSequenceRing') - -# Six Vertex Model -lazy_import('sage.combinat.six_vertex_model', 'SixVertexModel') - -# sine-Gordon Y-systems -lazy_import('sage.combinat.sine_gordon', 'SineGordonYsystem') - -# Fully Packed Loop -lazy_import('sage.combinat.fully_packed_loop', ['FullyPackedLoop', 'FullyPackedLoops']) - -# Subword complex and cluster complex -lazy_import('sage.combinat.subword_complex', 'SubwordComplex') -lazy_import("sage.combinat.cluster_complex", "ClusterComplex") - -# Constellations -lazy_import('sage.combinat.constellation', ['Constellation', 'Constellations']) - -# Growth diagrams -lazy_import('sage.combinat.growth', 'GrowthDiagram') - -# Path Tableaux -lazy_import('sage.combinat.path_tableaux', 'catalog', as_='path_tableaux') - -# Bijectionist -lazy_import('sage.combinat.bijectionist', 'Bijectionist') +from .all__sagemath_combinat import * +from .all__sagemath_modules import * +from .all__sagemath_graphs import * diff --git a/src/sage/combinat/all__sagemath_categories.py b/src/sage/combinat/all__sagemath_categories.py new file mode 100644 index 00000000000..f259743f620 --- /dev/null +++ b/src/sage/combinat/all__sagemath_categories.py @@ -0,0 +1,29 @@ +# Integer lists +from .matrices.all__sagemath_categories import * + +from .integer_lists import IntegerListsLex +from .integer_vector import IntegerVectors + +from .combinat import (CombinatorialClass, CombinatorialObject, + MapCombinatorialClass, + bell_number, bell_polynomial, bernoulli_polynomial, + catalan_number, euler_number, + fibonacci, fibonacci_sequence, fibonacci_xrange, + lucas_number1, lucas_number2, + number_of_tuples, number_of_unordered_tuples, + polygonal_number, stirling_number1, stirling_number2, + tuples, unordered_tuples) + +lazy_import('sage.combinat.combinat', + ('InfiniteAbstractCombinatorialClass', 'UnionCombinatorialClass', + 'FilteredCombinatorialClass'), + deprecation=(31545, 'this class is deprecated, do not use')) + +from .combination import Combinations +from .composition import Composition, Compositions +from .permutation import Permutation, Permutations, Arrangements, CyclicPermutations, CyclicPermutationsOfPartition +from .subset import Subsets, subsets, powerset, uniq +from .tuple import Tuples, UnorderedTuples + + +from .dlx import DLXMatrix, AllExactCovers, OneExactCover diff --git a/src/sage/combinat/all__sagemath_combinat.py b/src/sage/combinat/all__sagemath_combinat.py new file mode 100644 index 00000000000..9e06eeb0c08 --- /dev/null +++ b/src/sage/combinat/all__sagemath_combinat.py @@ -0,0 +1,197 @@ +from .all__sagemath_categories import * + +from sage.misc.lazy_import import lazy_import + +from .expnums import expnums + +from sage.combinat.chas.all import * +from sage.combinat.crystals.all import * +from .rigged_configurations.all import * + +# Free modules and friends +from .debruijn_sequence import DeBruijnSequences + +lazy_import('sage.combinat.schubert_polynomial', 'SchubertPolynomialRing') +lazy_import('sage.combinat.key_polynomial', 'KeyPolynomialBasis', as_='KeyPolynomials') +lazy_import('sage.combinat.symmetric_group_algebra', ['SymmetricGroupAlgebra', 'HeckeAlgebraSymmetricGroupT']) +lazy_import('sage.combinat.symmetric_group_representations', ['SymmetricGroupRepresentation', 'SymmetricGroupRepresentations']) + +# Permutations +lazy_import('sage.combinat.affine_permutation', 'AffinePermutationGroup') +lazy_import('sage.combinat.colored_permutations', ['ColoredPermutations', + 'SignedPermutation', + 'SignedPermutations']) +from .derangements import Derangements +lazy_import('sage.combinat.baxter_permutations', ['BaxterPermutations']) + +# RSK +from .rsk import RSK, RSK_inverse, robinson_schensted_knuth, robinson_schensted_knuth_inverse, InsertionRules + +# HillmanGrassl +lazy_import("sage.combinat.hillman_grassl", ["WeakReversePlanePartition", "WeakReversePlanePartitions"]) + +# PerfectMatchings +from .perfect_matching import PerfectMatching, PerfectMatchings + +# Compositions +from .composition_signed import SignedCompositions + +# Partitions +from .partition import (Partition, Partitions, PartitionsInBox, + OrderedPartitions, PartitionsGreatestLE, + PartitionsGreatestEQ, number_of_partitions) + +lazy_import('sage.combinat.partition_tuple', ['PartitionTuple', 'PartitionTuples']) +lazy_import('sage.combinat.partition_kleshchev', ['KleshchevPartitions']) +lazy_import('sage.combinat.skew_partition', ['SkewPartition', 'SkewPartitions']) + +# Partition algebra +lazy_import('sage.combinat.partition_algebra', ['SetPartitionsAk', 'SetPartitionsPk', 'SetPartitionsTk', + 'SetPartitionsIk', 'SetPartitionsBk', 'SetPartitionsSk', + 'SetPartitionsRk', 'SetPartitionsPRk']) + +# Raising operators +lazy_import('sage.combinat.partition_shifting_algebras', 'ShiftingOperatorAlgebra') + +# Diagram algebra +lazy_import('sage.combinat.diagram_algebras', ['PartitionAlgebra', 'BrauerAlgebra', 'TemperleyLiebAlgebra', + 'PlanarAlgebra', 'PropagatingIdeal']) + +# Descent algebra +lazy_import('sage.combinat.descent_algebra', 'DescentAlgebra') + +# Vector Partitions +lazy_import('sage.combinat.vector_partition', + ['VectorPartition', 'VectorPartitions']) + +# Similarity class types +lazy_import('sage.combinat.similarity_class_type', ['PrimarySimilarityClassType', 'PrimarySimilarityClassTypes', + 'SimilarityClassType', 'SimilarityClassTypes']) + +# Cores +from .core import Core, Cores + +# Tableaux +lazy_import('sage.combinat.tableau', + ["Tableau", "SemistandardTableau", "StandardTableau", "RowStandardTableau", "IncreasingTableau", + "Tableaux", "SemistandardTableaux", "StandardTableaux", "RowStandardTableaux", "IncreasingTableaux"]) +from .skew_tableau import SkewTableau, SkewTableaux, StandardSkewTableaux, SemistandardSkewTableaux +from .ribbon_shaped_tableau import RibbonShapedTableau, RibbonShapedTableaux, StandardRibbonShapedTableaux +from .ribbon_tableau import RibbonTableaux, RibbonTableau, MultiSkewTableaux, MultiSkewTableau, SemistandardMultiSkewTableaux +from .composition_tableau import CompositionTableau, CompositionTableaux + +lazy_import('sage.combinat.tableau_tuple', + ['TableauTuple', 'StandardTableauTuple', 'RowStandardTableauTuple', + 'TableauTuples', 'StandardTableauTuples', 'RowStandardTableauTuples']) +from .k_tableau import WeakTableau, WeakTableaux, StrongTableau, StrongTableaux +lazy_import('sage.combinat.lr_tableau', ['LittlewoodRichardsonTableau', + 'LittlewoodRichardsonTableaux']) +lazy_import('sage.combinat.shifted_primed_tableau', ['ShiftedPrimedTableaux', + 'ShiftedPrimedTableau']) + +# SuperTableaux +lazy_import('sage.combinat.super_tableau', + ["StandardSuperTableau", "SemistandardSuperTableau", "StandardSuperTableaux", "SemistandardSuperTableaux"]) + +# Words +from .words.all import * + +lazy_import('sage.combinat.subword', 'Subwords') + +# Alternating sign matrices +lazy_import('sage.combinat.alternating_sign_matrix', ('AlternatingSignMatrix', + 'AlternatingSignMatrices', + 'MonotoneTriangles', + 'ContreTableaux', + 'TruncatedStaircases')) + +# Decorated Permutations +lazy_import('sage.combinat.decorated_permutation', ('DecoratedPermutation', + 'DecoratedPermutations')) + +# Plane Partitions +lazy_import('sage.combinat.plane_partition', ('PlanePartition', + 'PlanePartitions')) + +# Parking Functions +lazy_import('sage.combinat.non_decreasing_parking_function', + ['NonDecreasingParkingFunctions', 'NonDecreasingParkingFunction']) +lazy_import('sage.combinat.parking_functions', + ['ParkingFunctions', 'ParkingFunction']) + +from .set_partition import SetPartition, SetPartitions +from .set_partition_ordered import OrderedSetPartition, OrderedSetPartitions +lazy_import('sage.combinat.multiset_partition_into_sets_ordered', + ['OrderedMultisetPartitionIntoSets', + 'OrderedMultisetPartitionsIntoSets']) +from .necklace import Necklaces +lazy_import('sage.combinat.dyck_word', ('DyckWords', 'DyckWord')) +lazy_import('sage.combinat.nu_dyck_word', ('NuDyckWords', 'NuDyckWord')) +from .sloane_functions import sloane +lazy_import('sage.combinat.superpartition', ('SuperPartition', + 'SuperPartitions')) + +lazy_import('sage.combinat.parallelogram_polyomino', + ['ParallelogramPolyomino', 'ParallelogramPolyominoes']) + +from .sf.all import * +from .ncsf_qsym.all import * +from .ncsym.all import * +lazy_import('sage.combinat.fqsym', 'FreeQuasisymmetricFunctions') +from .matrices.all import * + +lazy_import('sage.combinat.integer_vector_weighted', 'WeightedIntegerVectors') +lazy_import('sage.combinat.integer_vectors_mod_permgroup', 'IntegerVectorsModPermutationGroup') + +lazy_import('sage.combinat.q_analogues', ['gaussian_binomial', 'q_binomial']) + +from .species.all import * + +lazy_import('sage.combinat.kazhdan_lusztig', 'KazhdanLusztigPolynomial') + +lazy_import('sage.combinat.degree_sequences', 'DegreeSequences') + +lazy_import('sage.combinat.cyclic_sieving_phenomenon', + ['CyclicSievingPolynomial', 'CyclicSievingCheck']) + +lazy_import('sage.combinat.sidon_sets', 'sidon_sets') + +# Puzzles +lazy_import('sage.combinat.knutson_tao_puzzles', 'KnutsonTaoPuzzleSolver') + +# Gelfand-Tsetlin patterns +lazy_import('sage.combinat.gelfand_tsetlin_patterns', + ['GelfandTsetlinPattern', 'GelfandTsetlinPatterns']) + +# Sequences +lazy_import('sage.combinat.binary_recurrence_sequences', + 'BinaryRecurrenceSequence') +lazy_import('sage.combinat.recognizable_series', 'RecognizableSeriesSpace') +lazy_import('sage.combinat.regular_sequence', 'RegularSequenceRing') + + + +# Six Vertex Model +lazy_import('sage.combinat.six_vertex_model', 'SixVertexModel') + +# sine-Gordon Y-systems +lazy_import('sage.combinat.sine_gordon', 'SineGordonYsystem') + +# Fully Packed Loop +lazy_import('sage.combinat.fully_packed_loop', ['FullyPackedLoop', 'FullyPackedLoops']) + +# Subword complex and cluster complex +lazy_import('sage.combinat.subword_complex', 'SubwordComplex') +lazy_import("sage.combinat.cluster_complex", "ClusterComplex") + +# Constellations +lazy_import('sage.combinat.constellation', ['Constellation', 'Constellations']) + +# Growth diagrams +lazy_import('sage.combinat.growth', 'GrowthDiagram') + +# Path Tableaux +lazy_import('sage.combinat.path_tableaux', 'catalog', as_='path_tableaux') + +# Bijectionist +lazy_import('sage.combinat.bijectionist', 'Bijectionist') diff --git a/src/sage/combinat/all__sagemath_flint.py b/src/sage/combinat/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/combinat/all__sagemath_gap.py b/src/sage/combinat/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/combinat/all__sagemath_graphs.py b/src/sage/combinat/all__sagemath_graphs.py new file mode 100644 index 00000000000..2c022af4663 --- /dev/null +++ b/src/sage/combinat/all__sagemath_graphs.py @@ -0,0 +1,31 @@ +from .all__sagemath_categories import * + +from sage.misc.lazy_import import lazy_import + +# Posets +from .posets.all import * + +# Trees and Tamari interval posets +from .ordered_tree import (OrderedTree, OrderedTrees, + LabelledOrderedTree, LabelledOrderedTrees) +from .binary_tree import (BinaryTree, BinaryTrees, + LabelledBinaryTree, LabelledBinaryTrees) +lazy_import('sage.combinat.rooted_tree', ('RootedTree', 'RootedTrees', + 'LabelledRootedTree', 'LabelledRootedTrees')) +lazy_import('sage.combinat.interval_posets', ['TamariIntervalPoset', 'TamariIntervalPosets']) + +from .graph_path import GraphPaths + +from .yang_baxter_graph import YangBaxterGraph + +# block designs, etc +from sage.combinat.designs.all import * + +# Cluster Algebras and Quivers +from .cluster_algebra_quiver.all import * + +# Finite State Machines (Automaton, Transducer) +lazy_import('sage.combinat.finite_state_machine', + ['Automaton', 'Transducer', 'FiniteStateMachine']) +lazy_import('sage.combinat.finite_state_machine_generators', + ['automata', 'transducers']) diff --git a/src/sage/combinat/all__sagemath_modules.py b/src/sage/combinat/all__sagemath_modules.py new file mode 100644 index 00000000000..540552d4473 --- /dev/null +++ b/src/sage/combinat/all__sagemath_modules.py @@ -0,0 +1,6 @@ +from .all__sagemath_categories import * + +from .free_module import CombinatorialFreeModule +from . import ranker + +from .root_system.all import * diff --git a/src/sage/combinat/matrices/all.py b/src/sage/combinat/matrices/all.py index 0f6adbb5355..45f3d0018f7 100644 --- a/src/sage/combinat/matrices/all.py +++ b/src/sage/combinat/matrices/all.py @@ -10,10 +10,14 @@ from sage.misc.namespace_package import install_doc install_doc(__package__, __doc__) +from .all__sagemath_categories import * + from sage.misc.lazy_import import lazy_import lazy_import('sage.combinat.matrices.latin', ['LatinSquare', 'LatinSquare_generator']) -lazy_import('sage.combinat.matrices.dlxcpp', 'DLXCPP') lazy_import('sage.combinat.matrices.hadamard_matrix', ['hadamard_matrix', 'hadamard_matrix_www']) + +del install_doc +del lazy_import diff --git a/src/sage/combinat/matrices/all__sagemath_categories.py b/src/sage/combinat/matrices/all__sagemath_categories.py new file mode 100644 index 00000000000..a27a2bb4ecb --- /dev/null +++ b/src/sage/combinat/matrices/all__sagemath_categories.py @@ -0,0 +1,3 @@ +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.combinat.matrices.dlxcpp', 'DLXCPP') diff --git a/src/sage/combinat/ncsf_qsym/all.py b/src/sage/combinat/ncsf_qsym/all.py index db6cb1f065e..4d09a08bbe9 100644 --- a/src/sage/combinat/ncsf_qsym/all.py +++ b/src/sage/combinat/ncsf_qsym/all.py @@ -12,5 +12,10 @@ from sage.misc.namespace_package import install_doc install_doc(__package__, __doc__) -from .qsym import QuasiSymmetricFunctions -from .ncsf import NonCommutativeSymmetricFunctions +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.combinat.ncsf_qsym.qsym', 'QuasiSymmetricFunctions') +lazy_import('sage.combinat.ncsf_qsym.ncsf', 'NonCommutativeSymmetricFunctions') + +del install_doc +del lazy_import diff --git a/src/sage/combinat/ncsym/all.py b/src/sage/combinat/ncsym/all.py index 7a174e45ccf..864a6ac6960 100644 --- a/src/sage/combinat/ncsym/all.py +++ b/src/sage/combinat/ncsym/all.py @@ -11,5 +11,10 @@ from sage.misc.namespace_package import install_doc install_doc(__package__, __doc__) -from .ncsym import SymmetricFunctionsNonCommutingVariables -from .dual import SymmetricFunctionsNonCommutingVariablesDual +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.combinat.ncsym.ncsym', 'SymmetricFunctionsNonCommutingVariables') +lazy_import('sage.combinat.ncsym.dual', 'SymmetricFunctionsNonCommutingVariablesDual') + +del install_doc +del lazy_import diff --git a/src/sage/combinat/posets/all__sagemath_flint.py b/src/sage/combinat/posets/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/combinat/root_system/all.py b/src/sage/combinat/root_system/all.py index 263a4d916d2..95500f05cc6 100644 --- a/src/sage/combinat/root_system/all.py +++ b/src/sage/combinat/root_system/all.py @@ -122,9 +122,9 @@ from sage.misc.lazy_import import lazy_import from .cartan_type import CartanType -from .dynkin_diagram import DynkinDiagram -from .cartan_matrix import CartanMatrix -from .coxeter_matrix import CoxeterMatrix +lazy_import('sage.combinat.root_system.dynkin_diagram', 'DynkinDiagram') +lazy_import('sage.combinat.root_system.cartan_matrix', 'CartanMatrix') +lazy_import('sage.combinat.root_system.coxeter_matrix', 'CoxeterMatrix') from .coxeter_type import CoxeterType from .root_system import RootSystem, WeylDim lazy_import('sage.combinat.root_system.weyl_group', ['WeylGroup', diff --git a/src/sage/combinat/root_system/all__sagemath_gap.py b/src/sage/combinat/root_system/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/combinat/words/all.py b/src/sage/combinat/words/all.py index 687b572c8e5..db32945a0f6 100644 --- a/src/sage/combinat/words/all.py +++ b/src/sage/combinat/words/all.py @@ -43,11 +43,16 @@ from sage.misc.namespace_package import install_doc install_doc(__package__, __doc__) +from sage.misc.lazy_import import lazy_import + from .alphabet import Alphabet, build_alphabet from .morphism import WordMorphism -from .paths import WordPaths +lazy_import('sage.combinat.words.paths', 'WordPaths') from .word import Word from .word_options import WordOptions from .word_generators import words from .words import Words, FiniteWords, InfiniteWords from .lyndon_word import LyndonWord, LyndonWords, StandardBracketedLyndonWords + +del install_doc +del lazy_import diff --git a/src/sage/data_structures/all.py b/src/sage/data_structures/all.py index 43c5de52d5a..ae1d0ab8b43 100644 --- a/src/sage/data_structures/all.py +++ b/src/sage/data_structures/all.py @@ -1,2 +1 @@ - -from .bitset import Bitset, FrozenBitset +from .all__sagemath_categories import * diff --git a/src/sage/data_structures/all__sagemath_categories.py b/src/sage/data_structures/all__sagemath_categories.py new file mode 100644 index 00000000000..6140cf5b919 --- /dev/null +++ b/src/sage/data_structures/all__sagemath_categories.py @@ -0,0 +1 @@ +from .bitset import Bitset, FrozenBitset diff --git a/src/sage/data_structures/all__sagemath_combinat.py b/src/sage/data_structures/all__sagemath_combinat.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/data_structures/all__sagemath_flint.py b/src/sage/data_structures/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/databases/all__sagemath_graphs.py b/src/sage/databases/all__sagemath_graphs.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/dynamics/all.py b/src/sage/dynamics/all.py index e5c553a3d54..1dbd9579e30 100644 --- a/src/sage/dynamics/all.py +++ b/src/sage/dynamics/all.py @@ -20,10 +20,15 @@ from sage.misc.namespace_package import install_doc install_doc(__package__, __doc__) +from .all__sagemath_schemes import * + +try: + from .all__sagemath_symbolics import * +except ImportError: + pass + from sage.misc.lazy_import import lazy_import -from sage.dynamics.arithmetic_dynamics.all import * -from sage.dynamics.complex_dynamics.all import * from sage.dynamics.cellular_automata.all import * # Discrete dynamical systems diff --git a/src/sage/dynamics/all__sagemath_schemes.py b/src/sage/dynamics/all__sagemath_schemes.py new file mode 100644 index 00000000000..b1eac4ead2f --- /dev/null +++ b/src/sage/dynamics/all__sagemath_schemes.py @@ -0,0 +1 @@ +from sage.dynamics.arithmetic_dynamics.all import * diff --git a/src/sage/dynamics/all__sagemath_symbolics.py b/src/sage/dynamics/all__sagemath_symbolics.py new file mode 100644 index 00000000000..cd94b937f2f --- /dev/null +++ b/src/sage/dynamics/all__sagemath_symbolics.py @@ -0,0 +1,4 @@ +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.dynamics.complex_dynamics.mandel_julia', + ["mandelbrot_plot", "external_ray", "kneading_sequence", "julia_plot"]) diff --git a/src/sage/ext/all__sagemath_categories.py b/src/sage/ext/all__sagemath_categories.py new file mode 100644 index 00000000000..6210c1c60cb --- /dev/null +++ b/src/sage/ext/all__sagemath_categories.py @@ -0,0 +1,2 @@ +from sage.ext.fast_callable import fast_callable +from sage.ext.fast_eval import fast_float diff --git a/src/sage/ext/all__sagemath_modules.py b/src/sage/ext/all__sagemath_modules.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/ext/all__sagemath_pari.py b/src/sage/ext/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/ext/all__sagemath_symbolics.py b/src/sage/ext/all__sagemath_symbolics.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/ext_data/all__sagemath_gap.py b/src/sage/ext_data/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/ext_data/all__sagemath_singular.py b/src/sage/ext_data/all__sagemath_singular.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/games/all.py b/src/sage/games/all.py index e3e31bcf03e..6cf915addde 100644 --- a/src/sage/games/all.py +++ b/src/sage/games/all.py @@ -1,2 +1,4 @@ -from .sudoku import Sudoku, sudoku -from .hexad import Minimog +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.games.sudoku', ['Sudoku', 'sudoku']) +lazy_import('sage.games.hexad', ['Minimog']) diff --git a/src/sage/geometry/all.py b/src/sage/geometry/all.py index 3b7dcf756d8..e9f5e568a15 100644 --- a/src/sage/geometry/all.py +++ b/src/sage/geometry/all.py @@ -1,19 +1,12 @@ -from .polyhedron.all import * -from .hyperbolic_space.all import * -from .polyhedral_complex import PolyhedralComplex -from sage.misc.lazy_import import lazy_import +from .all__sagemath_polyhedra import * -lazy_import('sage.geometry.cone', ['Cone', 'random_cone']) -lazy_import('sage.geometry', 'cone_catalog', 'cones') -lazy_import('sage.geometry.fan', ['Fan', 'FaceFan', 'NormalFan', 'Fan2d']) -lazy_import('sage.geometry.fan_morphism', 'FanMorphism') -lazy_import('sage.geometry.lattice_polytope', - ['LatticePolytope', 'NefPartition', - 'ReflexivePolytope', 'ReflexivePolytopes']) -lazy_import('sage.geometry', 'lattice_polytope') -lazy_import('sage.geometry.toric_lattice', 'ToricLattice') -lazy_import('sage.geometry', 'toric_plotter') -lazy_import('sage.geometry.voronoi_diagram', 'VoronoiDiagram') -lazy_import('sage.geometry.ribbon_graph', 'RibbonGraph') -lazy_import('sage.geometry.hyperplane_arrangement.arrangement', 'HyperplaneArrangements') -lazy_import('sage.geometry.hyperplane_arrangement.library', 'hyperplane_arrangements') +try: + from .all__sagemath_symbolics import * +except ImportError: + pass + + +try: + from .all__sagemath_gap import * +except ImportError: + pass diff --git a/src/sage/geometry/all__sagemath_categories.py b/src/sage/geometry/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/geometry/all__sagemath_gap.py b/src/sage/geometry/all__sagemath_gap.py new file mode 100644 index 00000000000..411a7c76d9a --- /dev/null +++ b/src/sage/geometry/all__sagemath_gap.py @@ -0,0 +1,4 @@ + +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.geometry.ribbon_graph', 'RibbonGraph') diff --git a/src/sage/geometry/all__sagemath_linbox.py b/src/sage/geometry/all__sagemath_linbox.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/geometry/all__sagemath_modules.py b/src/sage/geometry/all__sagemath_modules.py new file mode 100644 index 00000000000..9490f68a162 --- /dev/null +++ b/src/sage/geometry/all__sagemath_modules.py @@ -0,0 +1,3 @@ +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.geometry.toric_lattice', 'ToricLattice') diff --git a/src/sage/geometry/all__sagemath_polyhedra.py b/src/sage/geometry/all__sagemath_polyhedra.py new file mode 100644 index 00000000000..1bc471abd2e --- /dev/null +++ b/src/sage/geometry/all__sagemath_polyhedra.py @@ -0,0 +1,19 @@ +from .all__sagemath_modules import * + +from .polyhedron.all import * +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.geometry.polyhedral_complex', 'PolyhedralComplex') +lazy_import('sage.geometry.cone', ['Cone', 'random_cone']) +lazy_import('sage.geometry', 'cone_catalog', 'cones') +lazy_import('sage.geometry.fan', ['Fan', 'FaceFan', 'NormalFan', 'Fan2d']) +lazy_import('sage.geometry.fan_morphism', 'FanMorphism') +lazy_import('sage.geometry.lattice_polytope', + ['LatticePolytope', 'NefPartition', + 'ReflexivePolytope', 'ReflexivePolytopes']) +lazy_import('sage.geometry', 'lattice_polytope') +lazy_import('sage.geometry', 'toric_plotter') +lazy_import('sage.geometry.voronoi_diagram', 'VoronoiDiagram') +lazy_import('sage.geometry.hyperplane_arrangement.arrangement', 'HyperplaneArrangements') +lazy_import('sage.geometry.hyperplane_arrangement.library', 'hyperplane_arrangements') +del lazy_import diff --git a/src/sage/geometry/all__sagemath_symbolics.py b/src/sage/geometry/all__sagemath_symbolics.py new file mode 100644 index 00000000000..fb2ddf22675 --- /dev/null +++ b/src/sage/geometry/all__sagemath_symbolics.py @@ -0,0 +1,7 @@ +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.geometry.hyperbolic_space.hyperbolic_interface', 'HyperbolicPlane') + +from sage.geometry.riemannian_manifolds.all import * + +del lazy_import diff --git a/src/sage/graphs/all__sagemath_flint.py b/src/sage/graphs/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/abelian_gps/all.py b/src/sage/groups/abelian_gps/all.py index 2bb91f85f3b..98374be35ea 100644 --- a/src/sage/groups/abelian_gps/all.py +++ b/src/sage/groups/abelian_gps/all.py @@ -20,10 +20,5 @@ # http://www.gnu.org/licenses/ #***************************************************************************** -#from dual_abelian_group import DualAbelianGroup -from .abelian_group import AbelianGroup, word_problem -from .values import AbelianGroupWithValues - -# TODO: -# Implement group homset, conversion of generator images to morphism -from .abelian_group_morphism import AbelianGroupMorphism +from .all__sagemath_modules import * +from .all__sagemath_gap import * diff --git a/src/sage/groups/abelian_gps/all__sagemath_gap.py b/src/sage/groups/abelian_gps/all__sagemath_gap.py new file mode 100644 index 00000000000..0088c48b234 --- /dev/null +++ b/src/sage/groups/abelian_gps/all__sagemath_gap.py @@ -0,0 +1,5 @@ + +# TODO: +# Implement group homset, conversion of generator images to morphism + +from .abelian_group_morphism import AbelianGroupMorphism diff --git a/src/sage/groups/abelian_gps/all__sagemath_modules.py b/src/sage/groups/abelian_gps/all__sagemath_modules.py new file mode 100644 index 00000000000..6ea25bb7085 --- /dev/null +++ b/src/sage/groups/abelian_gps/all__sagemath_modules.py @@ -0,0 +1,4 @@ + +#from dual_abelian_group import DualAbelianGroup +from .abelian_group import AbelianGroup, word_problem +from .values import AbelianGroupWithValues diff --git a/src/sage/groups/all.py b/src/sage/groups/all.py index 4361403dccc..05055ce1883 100644 --- a/src/sage/groups/all.py +++ b/src/sage/groups/all.py @@ -1,37 +1,4 @@ -from sage.misc.lazy_import import lazy_import - -from .pari_group import PariGroup - -from .matrix_gps.all import * -from .abelian_gps.all import * - -from .perm_gps.all import * - -from .generic import (discrete_log, discrete_log_rho, discrete_log_lambda, - linear_relation, multiple, multiples) - -lazy_import('sage.groups.class_function', 'ClassFunction') - -from .additive_abelian.all import * - -lazy_import('sage.groups.conjugacy_classes', ['ConjugacyClass', 'ConjugacyClassGAP']) - -lazy_import('sage.groups.free_group', 'FreeGroup') -lazy_import('sage.groups.braid', 'BraidGroup') -lazy_import('sage.groups.cubic_braid', 'CubicBraidGroup') -lazy_import('sage.groups.cubic_braid', 'AssionGroupU') -lazy_import('sage.groups.cubic_braid', 'AssionGroupS') - -lazy_import('sage.groups.affine_gps.affine_group', 'AffineGroup') -lazy_import('sage.groups.affine_gps.euclidean_group', 'EuclideanGroup') - -lazy_import('sage.groups.artin', 'ArtinGroup') -lazy_import('sage.groups.raag', 'RightAngledArtinGroup') - -lazy_import('sage.groups', 'groups_catalog', 'groups') - -lazy_import('sage.groups.semimonomial_transformations.semimonomial_transformation_group', 'SemimonomialTransformationGroup') - -lazy_import('sage.groups.group_exp', ['GroupExp', 'GroupExp_Class', 'GroupExpElement']) - -lazy_import('sage.groups.group_semidirect_product', ['GroupSemidirectProduct', 'GroupSemidirectProductElement']) +from .all__sagemath_modules import * +from .all__sagemath_gap import * +from .all__sagemath_pari import * +from .all__sagemath_groups import * diff --git a/src/sage/groups/all__sagemath_categories.py b/src/sage/groups/all__sagemath_categories.py new file mode 100644 index 00000000000..82406522b6f --- /dev/null +++ b/src/sage/groups/all__sagemath_categories.py @@ -0,0 +1,10 @@ +from .all__sagemath_objects import * + +from .generic import (discrete_log, discrete_log_rho, discrete_log_lambda, + linear_relation, multiple, multiples) + +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.groups', 'groups_catalog', 'groups') + +del lazy_import diff --git a/src/sage/groups/all__sagemath_combinat.py b/src/sage/groups/all__sagemath_combinat.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/all__sagemath_gap.py b/src/sage/groups/all__sagemath_gap.py new file mode 100644 index 00000000000..fc243cb01df --- /dev/null +++ b/src/sage/groups/all__sagemath_gap.py @@ -0,0 +1,3 @@ + +from .perm_gps.all import * +from .abelian_gps.all__sagemath_gap import * diff --git a/src/sage/groups/all__sagemath_graphs.py b/src/sage/groups/all__sagemath_graphs.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/all__sagemath_groups.py b/src/sage/groups/all__sagemath_groups.py new file mode 100644 index 00000000000..396a558de4c --- /dev/null +++ b/src/sage/groups/all__sagemath_groups.py @@ -0,0 +1,29 @@ +from .all__sagemath_modules import * + +try: + from .all__sagemath_pari import * +except ImportError: + pass + +from .all__sagemath_gap import * + +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.groups.class_function', 'ClassFunction') + +lazy_import('sage.groups.conjugacy_classes', ['ConjugacyClass', 'ConjugacyClassGAP']) + +lazy_import('sage.groups.free_group', 'FreeGroup') +lazy_import('sage.groups.braid', 'BraidGroup') +lazy_import('sage.groups.cubic_braid', 'CubicBraidGroup') +lazy_import('sage.groups.cubic_braid', 'AssionGroupU') +lazy_import('sage.groups.cubic_braid', 'AssionGroupS') + +lazy_import('sage.groups.artin', 'ArtinGroup') +lazy_import('sage.groups.raag', 'RightAngledArtinGroup') + +lazy_import('sage.groups.semimonomial_transformations.semimonomial_transformation_group', 'SemimonomialTransformationGroup') + +lazy_import('sage.groups.group_exp', ['GroupExp', 'GroupExp_Class', 'GroupExpElement']) + +lazy_import('sage.groups.group_semidirect_product', ['GroupSemidirectProduct', 'GroupSemidirectProductElement']) diff --git a/src/sage/groups/all__sagemath_modules.py b/src/sage/groups/all__sagemath_modules.py new file mode 100644 index 00000000000..17aba8aa49d --- /dev/null +++ b/src/sage/groups/all__sagemath_modules.py @@ -0,0 +1,10 @@ +from .all__sagemath_categories import * + +from .additive_abelian.all import * +from .abelian_gps.all__sagemath_modules import * +from .matrix_gps.all__sagemath_modules import * + +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.groups.affine_gps.affine_group', 'AffineGroup') +lazy_import('sage.groups.affine_gps.euclidean_group', 'EuclideanGroup') diff --git a/src/sage/groups/all__sagemath_objects.py b/src/sage/groups/all__sagemath_objects.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/all__sagemath_pari.py b/src/sage/groups/all__sagemath_pari.py new file mode 100644 index 00000000000..97f61bbfc2c --- /dev/null +++ b/src/sage/groups/all__sagemath_pari.py @@ -0,0 +1,2 @@ + +from sage.groups.pari_group import PariGroup diff --git a/src/sage/groups/matrix_gps/all.py b/src/sage/groups/matrix_gps/all.py index c6360cd6a03..bbdf725dc5e 100644 --- a/src/sage/groups/matrix_gps/all.py +++ b/src/sage/groups/matrix_gps/all.py @@ -1,13 +1,3 @@ -from sage.misc.lazy_import import lazy_import - -lazy_import('sage.groups.matrix_gps.linear', 'GL') -lazy_import('sage.groups.matrix_gps.linear', 'SL') -lazy_import('sage.groups.matrix_gps.symplectic', 'Sp') -lazy_import('sage.groups.matrix_gps.unitary', 'SU') -lazy_import('sage.groups.matrix_gps.unitary', 'GU') -lazy_import('sage.groups.matrix_gps.orthogonal', 'GO') -lazy_import('sage.groups.matrix_gps.orthogonal', 'SO') -lazy_import('sage.groups.matrix_gps.finitely_generated', 'MatrixGroup') -lazy_import('sage.groups.matrix_gps.finitely_generated', 'QuaternionMatrixGroupGF3') +from .all__sagemath_modules import * import sage.groups.matrix_gps.pickling_overrides diff --git a/src/sage/groups/matrix_gps/all__sagemath_gap.py b/src/sage/groups/matrix_gps/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/matrix_gps/all__sagemath_modules.py b/src/sage/groups/matrix_gps/all__sagemath_modules.py new file mode 100644 index 00000000000..99cdea05871 --- /dev/null +++ b/src/sage/groups/matrix_gps/all__sagemath_modules.py @@ -0,0 +1,11 @@ +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.groups.matrix_gps.linear', 'GL') +lazy_import('sage.groups.matrix_gps.linear', 'SL') +lazy_import('sage.groups.matrix_gps.symplectic', 'Sp') +lazy_import('sage.groups.matrix_gps.unitary', 'SU') +lazy_import('sage.groups.matrix_gps.unitary', 'GU') +lazy_import('sage.groups.matrix_gps.orthogonal', 'GO') +lazy_import('sage.groups.matrix_gps.orthogonal', 'SO') +lazy_import('sage.groups.matrix_gps.finitely_generated', 'MatrixGroup') +lazy_import('sage.groups.matrix_gps.finitely_generated', 'QuaternionMatrixGroupGF3') diff --git a/src/sage/groups/perm_gps/all__sagemath_categories.py b/src/sage/groups/perm_gps/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/perm_gps/all__sagemath_graphs.py b/src/sage/groups/perm_gps/all__sagemath_graphs.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/perm_gps/all__sagemath_modules.py b/src/sage/groups/perm_gps/all__sagemath_modules.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/perm_gps/partn_ref/all__sagemath_categories.py b/src/sage/groups/perm_gps/partn_ref/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/perm_gps/partn_ref/all__sagemath_gap.py b/src/sage/groups/perm_gps/partn_ref/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/perm_gps/partn_ref/all__sagemath_graphs.py b/src/sage/groups/perm_gps/partn_ref/all__sagemath_graphs.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/groups/perm_gps/partn_ref/all__sagemath_modules.py b/src/sage/groups/perm_gps/partn_ref/all__sagemath_modules.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/homology/all.py b/src/sage/homology/all.py index d9306c19daa..1334936c7a3 100644 --- a/src/sage/homology/all.py +++ b/src/sage/homology/all.py @@ -1,6 +1 @@ -from .chain_complex import ChainComplex - -from .chain_complex_morphism import ChainComplexMorphism - -from sage.misc.lazy_import import lazy_import -lazy_import('sage.homology.koszul_complex', 'KoszulComplex') +from .all__sagemath_modules import * diff --git a/src/sage/homology/all__sagemath_modules.py b/src/sage/homology/all__sagemath_modules.py new file mode 100644 index 00000000000..d9306c19daa --- /dev/null +++ b/src/sage/homology/all__sagemath_modules.py @@ -0,0 +1,6 @@ +from .chain_complex import ChainComplex + +from .chain_complex_morphism import ChainComplexMorphism + +from sage.misc.lazy_import import lazy_import +lazy_import('sage.homology.koszul_complex', 'KoszulComplex') diff --git a/src/sage/interfaces/all__sagemath_categories.py b/src/sage/interfaces/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/interfaces/all__sagemath_gap.py b/src/sage/interfaces/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/interfaces/all__sagemath_libecm.py b/src/sage/interfaces/all__sagemath_libecm.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/interfaces/all__sagemath_pari.py b/src/sage/interfaces/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/interfaces/all__sagemath_plot.py b/src/sage/interfaces/all__sagemath_plot.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/interfaces/all__sagemath_symbolics.py b/src/sage/interfaces/all__sagemath_symbolics.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/lfunctions/all__sagemath_lcalc.py b/src/sage/lfunctions/all__sagemath_lcalc.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all.py b/src/sage/libs/all.py index 50423191ca4..5a446f66548 100644 --- a/src/sage/libs/all.py +++ b/src/sage/libs/all.py @@ -1,19 +1,11 @@ - -import sage.libs.ntl.all as ntl - -from sage.libs.pari.all import pari, pari_gen, PariError - -import sage.libs.symmetrica.all as symmetrica - -from sage.misc.lazy_import import lazy_import -lazy_import('sage.libs.gap.libgap', 'libgap') - -lazy_import('sage.libs.eclib.constructor', 'CremonaModularSymbols') -lazy_import('sage.libs.eclib.interface', ['mwrank_EllipticCurve', 'mwrank_MordellWeil']) -lazy_import('sage.libs.eclib.mwrank', 'get_precision', 'mwrank_get_precision') -lazy_import('sage.libs.eclib.mwrank', 'set_precision', 'mwrank_set_precision') -lazy_import('sage.libs.eclib.mwrank', 'initprimes', 'mwrank_initprimes') - -lazy_import('sage.libs.flint.qsieve', 'qsieve') - -lazy_import('sage.libs.giac.giac', 'libgiac') +from .all__sagemath_combinat import * +from .all__sagemath_gap import * +from .all__sagemath_flint import * +from .all__sagemath_ntl import * +from .all__sagemath_pari import * +from .all__sagemath_eclib import * + +try: + from .all__sagemath_symbolics import * +except ImportError: + pass diff --git a/src/sage/libs/all__sagemath_brial.py b/src/sage/libs/all__sagemath_brial.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_combinat.py b/src/sage/libs/all__sagemath_combinat.py new file mode 100644 index 00000000000..49fc95742c3 --- /dev/null +++ b/src/sage/libs/all__sagemath_combinat.py @@ -0,0 +1,5 @@ +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.libs.symmetrica', 'all', as_='symmetrica') + +del lazy_import diff --git a/src/sage/libs/all__sagemath_eclib.py b/src/sage/libs/all__sagemath_eclib.py new file mode 100644 index 00000000000..23d7839846c --- /dev/null +++ b/src/sage/libs/all__sagemath_eclib.py @@ -0,0 +1,10 @@ + +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.libs.eclib.constructor', 'CremonaModularSymbols') +lazy_import('sage.libs.eclib.interface', ['mwrank_EllipticCurve', 'mwrank_MordellWeil']) +lazy_import('sage.libs.eclib.mwrank', 'get_precision', 'mwrank_get_precision') +lazy_import('sage.libs.eclib.mwrank', 'set_precision', 'mwrank_set_precision') +lazy_import('sage.libs.eclib.mwrank', 'initprimes', 'mwrank_initprimes') + +del lazy_import diff --git a/src/sage/libs/all__sagemath_flint.py b/src/sage/libs/all__sagemath_flint.py new file mode 100644 index 00000000000..796eb12104d --- /dev/null +++ b/src/sage/libs/all__sagemath_flint.py @@ -0,0 +1,16 @@ + +try: + from .all__sagemath_pari import * +except ImportError: + pass + +try: + from .all__sagemath_ntl import * +except ImportError: + pass + +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.libs.flint.qsieve', 'qsieve') + +del lazy_import diff --git a/src/sage/libs/all__sagemath_gap.py b/src/sage/libs/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_giac.py b/src/sage/libs/all__sagemath_giac.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_glpk.py b/src/sage/libs/all__sagemath_glpk.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_homfly.py b/src/sage/libs/all__sagemath_homfly.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_lcalc.py b/src/sage/libs/all__sagemath_lcalc.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_libbraiding.py b/src/sage/libs/all__sagemath_libbraiding.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_libecm.py b/src/sage/libs/all__sagemath_libecm.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_linbox.py b/src/sage/libs/all__sagemath_linbox.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_modules.py b/src/sage/libs/all__sagemath_modules.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_mpmath.py b/src/sage/libs/all__sagemath_mpmath.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_ntl.py b/src/sage/libs/all__sagemath_ntl.py new file mode 100644 index 00000000000..ad98922f701 --- /dev/null +++ b/src/sage/libs/all__sagemath_ntl.py @@ -0,0 +1,2 @@ + +import sage.libs.ntl.all as ntl diff --git a/src/sage/libs/all__sagemath_pari.py b/src/sage/libs/all__sagemath_pari.py new file mode 100644 index 00000000000..3babb25ee71 --- /dev/null +++ b/src/sage/libs/all__sagemath_pari.py @@ -0,0 +1 @@ +from sage.libs.pari.all import pari, pari_gen, PariError diff --git a/src/sage/libs/all__sagemath_singular.py b/src/sage/libs/all__sagemath_singular.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/libs/all__sagemath_symbolics.py b/src/sage/libs/all__sagemath_symbolics.py new file mode 100644 index 00000000000..18cbb5d7ca1 --- /dev/null +++ b/src/sage/libs/all__sagemath_symbolics.py @@ -0,0 +1,3 @@ +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.libs.giac.giac', 'libgiac') diff --git a/src/sage/libs/pari/all__sagemath_flint.py b/src/sage/libs/pari/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/matrix/all__sagemath_flint.py b/src/sage/matrix/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/matrix/all__sagemath_gap.py b/src/sage/matrix/all__sagemath_gap.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/matrix/all__sagemath_linbox.py b/src/sage/matrix/all__sagemath_linbox.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/matrix/all__sagemath_ntl.py b/src/sage/matrix/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/matrix/all__sagemath_singular.py b/src/sage/matrix/all__sagemath_singular.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/matrix/all__sagemath_symbolics.py b/src/sage/matrix/all__sagemath_symbolics.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/misc/all.py b/src/sage/misc/all.py index e5a6418043a..a1023596d51 100644 --- a/src/sage/misc/all.py +++ b/src/sage/misc/all.py @@ -1,144 +1,12 @@ -from .lazy_attribute import lazy_attribute, lazy_class_attribute -from .lazy_import import lazy_import - -from .all__sagemath_objects import * +#from .all__sagemath_objects import * from .all__sagemath_environment import * +from .all__sagemath_modules import * from .all__sagemath_repl import * -from .misc import (BackslashOperator, - exists, forall, is_iterator, - random_sublist, - pad_zeros, - SAGE_DB, - newton_method_sizes, compose, - nest) -lazy_import('sage.misc.misc', 'union', - deprecation=32096) - -from .banner import version - -from .dev_tools import import_statements - -from .html import html, pretty_print_default - -from .table import table - -from .sage_timeit_class import timeit - -from .edit_module import edit - -from .map_threaded import map_threaded - -from .session import load_session, save_session, show_identifiers - from .remote_file import get_remote_file -from .mrange import xmrange, mrange, xmrange_iter, mrange_iter, cartesian_product_iterator - -from .fpickle import pickle_function, unpickle_function - -lazy_import('sage.misc.pager', 'pager') - -lazy_import('sage.misc.sagedoc', ['browse_sage_doc', - 'search_src', 'search_def', 'search_doc', - 'tutorial', 'reference', 'manual', 'developer', - 'constructions', 'help']) -lazy_import('pydoc', 'help', 'python_help') +lazy_import('sage.misc.dist', 'install_scripts', deprecation=34259) from .classgraph import class_graph -from .reset import reset, restore - -from .mathml import mathml - -from .defaults import (set_default_variable_name, - series_precision, set_series_precision) - -lazy_import("sage.misc.cython", "cython_lambda") -lazy_import("sage.misc.cython", "cython_compile", "cython") - -from .func_persist import func_persist - -from .functional import (additive_order, - base_ring, - base_field, - basis, - category, - charpoly, - characteristic_polynomial, - coerce, - cyclotomic_polynomial, - decomposition, - denominator, - det, - dimension, - dim, - discriminant, - disc, - eta, - fcp, - gen, - gens, - hecke_operator, - image, - integral, integrate, - integral_closure, - interval, - xinterval, - is_commutative, - is_even, - is_integrally_closed, - is_field, - is_odd, - kernel, - krull_dimension, - lift, - log as log_b, - minimal_polynomial, - minpoly, - multiplicative_order, - ngens, - norm, - numerator, - numerical_approx, - n, N, - objgens, - objgen, - order, - rank, - regulator, - round, - quotient, - quo, - isqrt, - squarefree_part, - sqrt, - symbolic_sum as sum, - symbolic_prod as product, - transpose) - - -from .latex import LatexExpr, latex, view - -from .randstate import seed, set_random_seed, initial_seed, current_randstate - -from .prandom import * - -from .timing import walltime, cputime - -from .explain_pickle import explain_pickle, unpickle_newobj, unpickle_global, unpickle_build, unpickle_instantiate, unpickle_persistent, unpickle_extension, unpickle_appends - -lazy_import('sage.misc.inline_fortran', 'fortran') - -lazy_import('sage.misc.banner', 'banner', deprecation=34259) -lazy_import('sage.misc.dev_tools', 'runsnake', deprecation=34259) -lazy_import('sage.misc.edit_module', 'set_edit_template', deprecation=34259) -lazy_import('sage.misc.profiler', 'Profiler', deprecation=34259) -lazy_import('sage.misc.dist', 'install_scripts', deprecation=34259) -lazy_import('sage.misc.trace', 'trace', deprecation=34259) -lazy_import('sage.misc.package', ('installed_packages', 'is_package_installed', - 'standard_packages', 'optional_packages', - 'experimental_packages', 'package_versions'), - deprecation=34259) -lazy_import('sage.misc.benchmark', 'benchmark', deprecation=34259) lazy_import('sage.repl.interpreter', 'logstr', deprecation=34259) diff --git a/src/sage/misc/all__sagemath_categories.py b/src/sage/misc/all__sagemath_categories.py new file mode 100644 index 00000000000..c64c3f97701 --- /dev/null +++ b/src/sage/misc/all__sagemath_categories.py @@ -0,0 +1,80 @@ + +from .all__sagemath_objects import * + +from .html import html, pretty_print_default + +from .mathml import mathml + +from .table import table + +from .map_threaded import map_threaded + +from .mrange import xmrange, mrange, xmrange_iter, mrange_iter, cartesian_product_iterator + +from .defaults import (set_default_variable_name, + series_precision, set_series_precision) + + +from .functional import (additive_order, + base_ring, + base_field, + basis, + category, + charpoly, + characteristic_polynomial, + coerce, + cyclotomic_polynomial, + decomposition, + denominator, + det, + dimension, + dim, + discriminant, + disc, + eta, + fcp, + gen, + gens, + hecke_operator, + image, + integral, integrate, + integral_closure, + interval, + xinterval, + is_commutative, + is_even, + is_integrally_closed, + is_field, + is_odd, + kernel, + krull_dimension, + lift, + log as log_b, + minimal_polynomial, + minpoly, + multiplicative_order, + ngens, + norm, + numerator, + numerical_approx, + n, N, + objgens, + objgen, + order, + rank, + regulator, + round, + quotient, + quo, + isqrt, + squarefree_part, + sqrt, + symbolic_sum as sum, + symbolic_prod as product, + transpose) + +from .latex import LatexExpr, latex, view + +from .fpickle import pickle_function, unpickle_function + +from .persist import unpickle_global diff --git a/src/sage/misc/all__sagemath_modules.py b/src/sage/misc/all__sagemath_modules.py new file mode 100644 index 00000000000..3b30aaeca19 --- /dev/null +++ b/src/sage/misc/all__sagemath_modules.py @@ -0,0 +1,21 @@ +# All of sage.misc.all except for development tools, session management, +# and deprecated functionality + +from .lazy_attribute import lazy_attribute, lazy_class_attribute +from .lazy_import import lazy_import + +from .all__sagemath_categories import * + +from .misc import (BackslashOperator, # Depends on sage.env -- can lower to sagemath-objects after splitting this module + exists, forall, is_iterator, + random_sublist, + pad_zeros, + SAGE_DB, + newton_method_sizes, compose, + nest) + +from .temporary_file import tmp_dir, tmp_filename # Depends on sage.env + +from .mathml import mathml + +from .func_persist import func_persist diff --git a/src/sage/misc/all__sagemath_ntl.py b/src/sage/misc/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/misc/all__sagemath_objects.py b/src/sage/misc/all__sagemath_objects.py index 43a9c1c06d5..c7363615ae5 100644 --- a/src/sage/misc/all__sagemath_objects.py +++ b/src/sage/misc/all__sagemath_objects.py @@ -33,4 +33,13 @@ from .abstract_method import abstract_method +from .randstate import seed, set_random_seed, initial_seed, current_randstate + +from .prandom import * + from .timing import walltime, cputime + +from .sage_timeit_class import timeit + +from .session import load_session, save_session, show_identifiers +from .reset import reset, restore diff --git a/src/sage/misc/all__sagemath_repl.py b/src/sage/misc/all__sagemath_repl.py index f5891ff1242..c3216265b45 100644 --- a/src/sage/misc/all__sagemath_repl.py +++ b/src/sage/misc/all__sagemath_repl.py @@ -1,3 +1,43 @@ +from .all__sagemath_objects import * + from .sage_eval import sage_eval, sageobj from .sage_input import sage_input + +from .banner import version + +lazy_import('sage.misc.banner', 'banner', deprecation=34259) + +lazy_import('sage.misc.sagedoc', ['browse_sage_doc', + 'search_src', 'search_def', 'search_doc', + 'tutorial', 'reference', 'manual', 'developer', + 'constructions', 'help']) + +lazy_import('pydoc', 'help', 'python_help') + +from .explain_pickle import explain_pickle, unpickle_newobj, unpickle_build, unpickle_instantiate, unpickle_persistent, unpickle_extension, unpickle_appends + +lazy_import('sage.misc.trace', 'trace', deprecation=34259) + +lazy_import('sage.misc.profiler', 'Profiler', deprecation=34259) + +from .dev_tools import import_statements + +lazy_import('sage.misc.dev_tools', 'runsnake', deprecation=34259) + +from .edit_module import edit + +lazy_import('sage.misc.edit_module', 'set_edit_template', deprecation=34259) + +lazy_import('sage.misc.pager', 'pager') + + +lazy_import("sage.misc.cython", "cython_lambda") +lazy_import("sage.misc.cython", "cython_compile", "cython") +lazy_import('sage.misc.inline_fortran', 'fortran') + +lazy_import('sage.misc.package', ('installed_packages', 'is_package_installed', + 'standard_packages', 'optional_packages', + 'experimental_packages', 'package_versions')) + +lazy_import('sage.misc.benchmark', 'benchmark', deprecation=34259) diff --git a/src/sage/modules/all__sagemath_linbox.py b/src/sage/modules/all__sagemath_linbox.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/modules/all__sagemath_objects.py b/src/sage/modules/all__sagemath_objects.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/modules/all__sagemath_symbolics.py b/src/sage/modules/all__sagemath_symbolics.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/monoids/all__sagemath_categories.py b/src/sage/monoids/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/numerical/all.py b/src/sage/numerical/all.py index 8b69da18652..a4f65cf44b5 100644 --- a/src/sage/numerical/all.py +++ b/src/sage/numerical/all.py @@ -1,7 +1,7 @@ +from .all__sagemath_modules import * + from sage.misc.lazy_import import lazy_import -lazy_import("sage.numerical.optimize", - ["find_fit", "find_local_maximum", "find_local_minimum", - "find_root", "minimize", "minimize_constrained"]) + lazy_import("sage.numerical.mip", ["MixedIntegerLinearProgram"]) lazy_import("sage.numerical.sdp", ["SemidefiniteProgram"]) lazy_import("sage.numerical.backends.generic_backend", ["default_mip_solver"]) diff --git a/src/sage/numerical/all__sagemath_categories.py b/src/sage/numerical/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/numerical/all__sagemath_glpk.py b/src/sage/numerical/all__sagemath_glpk.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/numerical/all__sagemath_modules.py b/src/sage/numerical/all__sagemath_modules.py new file mode 100644 index 00000000000..b1f25aedd4f --- /dev/null +++ b/src/sage/numerical/all__sagemath_modules.py @@ -0,0 +1,4 @@ +from sage.misc.lazy_import import lazy_import +lazy_import("sage.numerical.optimize", + ["find_fit", "find_local_maximum", "find_local_minimum", + "find_root", "minimize", "minimize_constrained"]) diff --git a/src/sage/numerical/backends/all__sagemath_categories.py b/src/sage/numerical/backends/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/numerical/backends/all__sagemath_glpk.py b/src/sage/numerical/backends/all__sagemath_glpk.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/plot/all.py b/src/sage/plot/all.py index 1f16e2d6789..2db3c52821d 100644 --- a/src/sage/plot/all.py +++ b/src/sage/plot/all.py @@ -34,6 +34,6 @@ from .step import plot_step_function -from .hyperbolic_arc import hyperbolic_arc -from .hyperbolic_polygon import hyperbolic_triangle, hyperbolic_polygon +lazy_import("sage.plot.hyperbolic_arc", "hyperbolic_arc") +lazy_import("sage.plot.hyperbolic_polygon", ["hyperbolic_triangle", "hyperbolic_polygon"]) lazy_import("sage.plot.hyperbolic_regular_polygon", "hyperbolic_regular_polygon") diff --git a/src/sage/quadratic_forms/all.py b/src/sage/quadratic_forms/all.py index 3445705978a..fbb7f2fdccb 100644 --- a/src/sage/quadratic_forms/all.py +++ b/src/sage/quadratic_forms/all.py @@ -1,17 +1,3 @@ -from .binary_qf import BinaryQF, BinaryQF_reduced_representatives -from .ternary_qf import TernaryQF, find_all_ternary_qf_by_level_disc, find_a_ternary_qf_by_level_disc - -from .quadratic_form import QuadraticForm, DiagonalQuadraticForm, quadratic_form_from_invariants - -from .random_quadraticform import (random_quadraticform, random_quadraticform_with_conditions, - random_ternaryqf, random_ternaryqf_with_conditions) - -from .extras import least_quadratic_nonresidue, extend_to_primitive, is_triangular_number - -from .special_values import (gamma__exact, zeta__exact, QuadraticBernoulliNumber, - quadratic_L_function__exact, quadratic_L_function__numerical) - -from .genera.genus import Genus - -from .constructions import BezoutianQuadraticForm, HyperbolicPlane_quadratic_form +from .all__sagemath_modules import * +from .all__sagemath_pari import * diff --git a/src/sage/quadratic_forms/all__sagemath_modules.py b/src/sage/quadratic_forms/all__sagemath_modules.py new file mode 100644 index 00000000000..e27f1eb15a9 --- /dev/null +++ b/src/sage/quadratic_forms/all__sagemath_modules.py @@ -0,0 +1,12 @@ +from .binary_qf import BinaryQF, BinaryQF_reduced_representatives + +from .ternary_qf import TernaryQF, find_all_ternary_qf_by_level_disc, find_a_ternary_qf_by_level_disc + +from .quadratic_form import QuadraticForm, DiagonalQuadraticForm, quadratic_form_from_invariants + +from .random_quadraticform import (random_quadraticform, random_quadraticform_with_conditions, + random_ternaryqf, random_ternaryqf_with_conditions) + +from .extras import least_quadratic_nonresidue, extend_to_primitive, is_triangular_number + +from .constructions import BezoutianQuadraticForm, HyperbolicPlane_quadratic_form diff --git a/src/sage/quadratic_forms/all__sagemath_pari.py b/src/sage/quadratic_forms/all__sagemath_pari.py new file mode 100644 index 00000000000..874de9d4f0b --- /dev/null +++ b/src/sage/quadratic_forms/all__sagemath_pari.py @@ -0,0 +1,5 @@ + +from .special_values import (gamma__exact, zeta__exact, QuadraticBernoulliNumber, + quadratic_L_function__exact, quadratic_L_function__numerical) + +from .genera.genus import Genus diff --git a/src/sage/rings/all.py b/src/sage/rings/all.py index 1d7b89601f5..89661c3c63c 100644 --- a/src/sage/rings/all.py +++ b/src/sage/rings/all.py @@ -12,157 +12,33 @@ # **************************************************************************** from sage.misc.lazy_import import lazy_import -from .all__sagemath_categories import * +from .all__sagemath_combinat import * +from .all__sagemath_flint import * +from .all__sagemath_modules import * -# Ring base classes -from .ring import (Ring, Field, CommutativeRing, IntegralDomain, - DedekindDomain, PrincipalIdealDomain, EuclideanDomain) - -# Ring element base classes -from sage.structure.element import (CommutativeAlgebraElement, - RingElement, CommutativeRingElement, IntegralDomainElement, - DedekindDomainElement, PrincipalIdealDomainElement, - EuclideanDomainElement, FieldElement) - -# Ideals -from .ideal import Ideal -ideal = Ideal - -# Quotient -from .quotient_ring import QuotientRing - -# Infinities -from .infinity import infinity, Infinity, InfinityRing, unsigned_infinity, UnsignedInfinityRing - -# Rational integers. -from .integer_ring import IntegerRing, ZZ, crt_basis -from .integer import Integer - -# Rational numbers -from .rational_field import RationalField, QQ -from .rational import Rational -Rationals = RationalField - -# Integers modulo n. -from sage.rings.finite_rings.integer_mod_ring import IntegerModRing, Zmod -from sage.rings.finite_rings.integer_mod import IntegerMod, Mod, mod -Integers = IntegerModRing +try: + from .all__sagemath_symbolics import * +except ImportError: + pass # Finite fields from .finite_rings.all import * -# Number field -from .number_field.all import * - # Function field from .function_field.all import * -# Finite residue fields -from .finite_rings.residue_field import ResidueField - -# p-adic field -from .padics.all import * -from .padics.padic_printing import _printer_defaults as padic_printing - -# valuations -from .valuation.all import * - -# Semirings -from .semirings.all import * - -# Real numbers -from .real_mpfr import (RealField, RR, - create_RealNumber as RealNumber) # this is used by the preparser to wrap real literals -- very important. -Reals = RealField - -from .real_double import RealDoubleField, RDF, RealDoubleElement - -from .real_lazy import RealLazyField, RLF, ComplexLazyField, CLF - -from sage.rings.real_arb import RealBallField, RBF - # Polynomial Rings and Polynomial Quotient Rings from .polynomial.all import * - -# Algebraic numbers -from .qqbar import (AlgebraicRealField, AA, - AlgebraicReal, - AlgebraicField, QQbar, - AlgebraicNumber, - number_field_elements_from_algebraics) -from .universal_cyclotomic_field import UniversalCyclotomicField, E - -# Intervals -from .real_mpfi import (RealIntervalField, - RIF, - RealInterval) - -# Complex numbers -from .complex_mpfr import ComplexField -from .complex_mpfr import create_ComplexNumber as ComplexNumber -Complexes = ComplexField -from .complex_interval_field import ComplexIntervalField -from .complex_interval import (create_ComplexIntervalFieldElement as ComplexIntervalFieldElement) - -from .complex_double import ComplexDoubleField, ComplexDoubleElement, CDF - -from .complex_mpc import MPComplexField - -from sage.rings.complex_arb import ComplexBallField, CBF - -lazy_import("sage.rings.imaginary_unit", "I") - -# Power series rings -from .power_series_ring import PowerSeriesRing - -# Laurent series ring in one variable -from .laurent_series_ring import LaurentSeriesRing - -# Lazy Laurent series ring -lazy_import('sage.rings.lazy_series_ring', ['LazyLaurentSeriesRing', 'LazyPowerSeriesRing', - 'LazySymmetricFunctions', 'LazyDirichletSeriesRing']) - -# Tate algebras -from .tate_algebra import TateAlgebra - -# Puiseux series ring -from .puiseux_series_ring import PuiseuxSeriesRing - -# Pseudo-ring of PARI objects. -from .pari_ring import PariRing, Pari - -# Big-oh notation -from .big_oh import O - -# Fraction field -from .fraction_field import FractionField -Frac = FractionField - -# Localization -from .localization import Localization - # c-finite sequences from .cfinite_sequence import CFiniteSequence, CFiniteSequences -from .bernoulli_mod_p import bernoulli_mod_p, bernoulli_mod_p_single - -from .monomials import monomials - -from .cc import CC -from .cif import CIF - -# invariant theory -from .invariants.all import * - from .fast_arith import prime_range -# continued fractions -from sage.rings.continued_fraction import (continued_fraction, - continued_fraction_list) - # asymptotic ring -from .asymptotic.all import * +#from .asymptotic.all import * +lazy_import('sage.rings.asymptotic.asymptotic_ring', 'AsymptoticRing') +lazy_import('sage.rings.asymptotic.asymptotic_expansion_generators', 'asymptotic_expansions') # Register classes in numbers abc from . import numbers_abc diff --git a/src/sage/rings/all__sagemath_brial.py b/src/sage/rings/all__sagemath_brial.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/all__sagemath_categories.py b/src/sage/rings/all__sagemath_categories.py index 8d14e7afcda..b76975de3b2 100644 --- a/src/sage/rings/all__sagemath_categories.py +++ b/src/sage/rings/all__sagemath_categories.py @@ -1,6 +1,78 @@ # Ring base classes -from .ring import Ring +from .ring import (Ring, Field, CommutativeRing, IntegralDomain, + DedekindDomain, PrincipalIdealDomain, EuclideanDomain) + +# Ring element base classes +from sage.structure.element import (CommutativeAlgebraElement, + RingElement, CommutativeRingElement, IntegralDomainElement, + DedekindDomainElement, PrincipalIdealDomainElement, + EuclideanDomainElement, FieldElement) + +# Rational numbers +from .rational import Rational +from .rational_field import RationalField, QQ +Rationals = RationalField + +# Rational integers. +from .integer_ring import IntegerRing, ZZ, crt_basis +from .integer import Integer + +# Integers modulo n. +from sage.rings.finite_rings.integer_mod_ring import IntegerModRing, Zmod +from sage.rings.finite_rings.integer_mod import IntegerMod, Mod, mod +Integers = IntegerModRing + +# Infinities +from .infinity import infinity, Infinity, InfinityRing, unsigned_infinity, UnsignedInfinityRing +oo = infinity + +# Quotient +from .quotient_ring import QuotientRing + +# Localization +from .localization import Localization + +# Fraction field +from .fraction_field import FractionField +Frac = FractionField + +# Function field +from .function_field.all__sagemath_categories import * + +# Double precision floating point numbers +from .real_double import RealDoubleField, RDF, RealDoubleElement # Ideals from .ideal import Ideal ideal = Ideal + +# Semirings +from .semirings.all import * + +from .finite_rings.all__sagemath_categories import * +from .number_field.all__sagemath_categories import * +from .padics.all__sagemath_categories import * +from .polynomial.all__sagemath_categories import * + +# Power series rings +from .power_series_ring import PowerSeriesRing + +# Laurent series ring in one variable +from .laurent_series_ring import LaurentSeriesRing + +# Puiseux series ring +from .puiseux_series_ring import PuiseuxSeriesRing + +# Big-oh notation +from .big_oh import O + +# continued fractions +from sage.rings.continued_fraction import (continued_fraction, + continued_fraction_list) + +# Lazy reals +from .real_lazy import RealLazyField, RLF, ComplexLazyField, CLF + +# Preliminary version of real numbers for doctesting without sage.rings.real_mpfr. +# sage.rings.all redefines it. +RealNumber = RR = RDF # used by the preparser to wrap real literals diff --git a/src/sage/rings/all__sagemath_combinat.py b/src/sage/rings/all__sagemath_combinat.py new file mode 100644 index 00000000000..73acfce9257 --- /dev/null +++ b/src/sage/rings/all__sagemath_combinat.py @@ -0,0 +1,9 @@ +from .all__sagemath_categories import * + +from sage.misc.lazy_import import lazy_import + +# Lazy Laurent series ring +lazy_import('sage.rings.lazy_series_ring', ['LazyLaurentSeriesRing', 'LazyPowerSeriesRing', + 'LazySymmetricFunctions', 'LazyDirichletSeriesRing']) + +del lazy_import diff --git a/src/sage/rings/all__sagemath_flint.py b/src/sage/rings/all__sagemath_flint.py new file mode 100644 index 00000000000..61ca5667c9e --- /dev/null +++ b/src/sage/rings/all__sagemath_flint.py @@ -0,0 +1,34 @@ + +from .all__sagemath_ntl import * + +# Real numbers +from sage.rings.real_arb import RealBallField, RBF + +from sage.rings.complex_arb import ComplexBallField, CBF + +# Number field +from .number_field.all import * + +from .monomials import monomials + +# Algebraic numbers +from .qqbar import (AlgebraicRealField, AA, + AlgebraicReal, + AlgebraicField, QQbar, + AlgebraicNumber, + number_field_elements_from_algebraics) + +# Intervals +from .real_mpfi import (RealIntervalField, + RIF, + RealInterval) + +# Complex numbers +from .complex_interval_field import ComplexIntervalField +from .complex_interval import (create_ComplexIntervalFieldElement as ComplexIntervalFieldElement) + +from sage.misc.lazy_import import lazy_import + +lazy_import("sage.rings.imaginary_unit", "I") + +from .cif import CIF diff --git a/src/sage/rings/all__sagemath_gap.py b/src/sage/rings/all__sagemath_gap.py new file mode 100644 index 00000000000..82933d8cb54 --- /dev/null +++ b/src/sage/rings/all__sagemath_gap.py @@ -0,0 +1,6 @@ + +from sage.misc.lazy_import import lazy_import + +lazy_import('sage.rings.universal_cyclotomic_field', ['UniversalCyclotomicField', 'E']) + +del lazy_import diff --git a/src/sage/rings/all__sagemath_linbox.py b/src/sage/rings/all__sagemath_linbox.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/all__sagemath_modules.py b/src/sage/rings/all__sagemath_modules.py new file mode 100644 index 00000000000..86c622842f9 --- /dev/null +++ b/src/sage/rings/all__sagemath_modules.py @@ -0,0 +1,24 @@ +from .all__sagemath_categories import * + +from .function_field.all__sagemath_modules import * +from .polynomial.all__sagemath_modules import * + +# Real numbers +from .real_mpfr import (RealField, RR, + create_RealNumber as RealNumber) # this is used by the preparser to wrap real literals -- very important. +Reals = RealField + +# Complex numbers + +from .complex_mpfr import ComplexField +from .complex_mpfr import create_ComplexNumber as ComplexNumber +Complexes = ComplexField + +from .complex_double import ComplexDoubleField, ComplexDoubleElement, CDF + +from .cc import CC + +from .complex_mpc import MPComplexField + +# invariant theory +from .invariants.all import * diff --git a/src/sage/rings/all__sagemath_ntl.py b/src/sage/rings/all__sagemath_ntl.py new file mode 100644 index 00000000000..2e4a22cd324 --- /dev/null +++ b/src/sage/rings/all__sagemath_ntl.py @@ -0,0 +1,6 @@ + +from .all__sagemath_pari import * + +from .padics.all__sagemath_ntl import * + +from .bernoulli_mod_p import bernoulli_mod_p, bernoulli_mod_p_single diff --git a/src/sage/rings/all__sagemath_pari.py b/src/sage/rings/all__sagemath_pari.py new file mode 100644 index 00000000000..cdb2f220cf9 --- /dev/null +++ b/src/sage/rings/all__sagemath_pari.py @@ -0,0 +1,12 @@ + +# Pseudo-ring of PARI objects. +from .pari_ring import PariRing, Pari + +# p-adic field +from .padics.all__sagemath_pari import * + +# valuations +from .valuation.all import * + +# Tate algebras +from .tate_algebra import TateAlgebra diff --git a/src/sage/rings/all__sagemath_singular.py b/src/sage/rings/all__sagemath_singular.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/all__sagemath_symbolics.py b/src/sage/rings/all__sagemath_symbolics.py new file mode 100644 index 00000000000..1334936c7a3 --- /dev/null +++ b/src/sage/rings/all__sagemath_symbolics.py @@ -0,0 +1 @@ +from .all__sagemath_modules import * diff --git a/src/sage/rings/finite_rings/all.py b/src/sage/rings/finite_rings/all.py index 5d3d3f21c73..5e7e652e861 100644 --- a/src/sage/rings/finite_rings/all.py +++ b/src/sage/rings/finite_rings/all.py @@ -18,6 +18,4 @@ # http://www.gnu.org/licenses/ #***************************************************************************** -from .finite_field_constructor import FiniteField -from .conway_polynomials import conway_polynomial, exists_conway_polynomial -GF = FiniteField +from .all__sagemath_categories import * diff --git a/src/sage/rings/finite_rings/all__sagemath_categories.py b/src/sage/rings/finite_rings/all__sagemath_categories.py new file mode 100644 index 00000000000..00710ed2fe7 --- /dev/null +++ b/src/sage/rings/finite_rings/all__sagemath_categories.py @@ -0,0 +1,8 @@ +from .finite_field_constructor import FiniteField + +GF = FiniteField + +from .conway_polynomials import conway_polynomial, exists_conway_polynomial + +# Finite residue fields +from .residue_field import ResidueField diff --git a/src/sage/rings/finite_rings/all__sagemath_linbox.py b/src/sage/rings/finite_rings/all__sagemath_linbox.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/finite_rings/all__sagemath_modules.py b/src/sage/rings/finite_rings/all__sagemath_modules.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/finite_rings/all__sagemath_ntl.py b/src/sage/rings/finite_rings/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/finite_rings/all__sagemath_pari.py b/src/sage/rings/finite_rings/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/function_field/all.py b/src/sage/rings/function_field/all.py index 455fa9fe19e..8922ed8d173 100644 --- a/src/sage/rings/function_field/all.py +++ b/src/sage/rings/function_field/all.py @@ -1,4 +1,9 @@ -from .constructor import FunctionField +from .all__sagemath_modules import * + +try: + from .all__sagemath_symbolics import * +except ImportError: + pass from sage.misc.lazy_import import lazy_import diff --git a/src/sage/rings/function_field/all__sagemath_categories.py b/src/sage/rings/function_field/all__sagemath_categories.py new file mode 100644 index 00000000000..b6bba3369c3 --- /dev/null +++ b/src/sage/rings/function_field/all__sagemath_categories.py @@ -0,0 +1 @@ +from .constructor import FunctionField diff --git a/src/sage/rings/function_field/all__sagemath_modules.py b/src/sage/rings/function_field/all__sagemath_modules.py new file mode 100644 index 00000000000..ae1d0ab8b43 --- /dev/null +++ b/src/sage/rings/function_field/all__sagemath_modules.py @@ -0,0 +1 @@ +from .all__sagemath_categories import * diff --git a/src/sage/rings/function_field/all__sagemath_pari.py b/src/sage/rings/function_field/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/function_field/all__sagemath_singular.py b/src/sage/rings/function_field/all__sagemath_singular.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/function_field/all__sagemath_symbolics.py b/src/sage/rings/function_field/all__sagemath_symbolics.py new file mode 100644 index 00000000000..1334936c7a3 --- /dev/null +++ b/src/sage/rings/function_field/all__sagemath_symbolics.py @@ -0,0 +1 @@ +from .all__sagemath_modules import * diff --git a/src/sage/rings/number_field/all__sagemath_categories.py b/src/sage/rings/number_field/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/number_field/all__sagemath_flint.py b/src/sage/rings/number_field/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/number_field/all__sagemath_pari.py b/src/sage/rings/number_field/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/padics/all.py b/src/sage/rings/padics/all.py index 7014f5622d8..016d922fd8a 100644 --- a/src/sage/rings/padics/all.py +++ b/src/sage/rings/padics/all.py @@ -1,6 +1,2 @@ -from .factory import Zp, Zq, Zp as pAdicRing, ZpCR, ZpCA, ZpFM, ZpFP, ZpLC, ZpLF, ZqCR, ZqCA, ZqFM, ZqFP, ZpER -from .factory import Qp, Qq, Qp as pAdicField, QpCR, QpFP, QpLC, QpLF, QqCR, QqFP, QpER -from .factory import pAdicExtension -from .padic_generic import local_print_mode -from .pow_computer import PowComputer -from .pow_computer_ext import PowComputer_ext_maker + +from .all__sagemath_flint import * diff --git a/src/sage/rings/padics/all__sagemath_categories.py b/src/sage/rings/padics/all__sagemath_categories.py new file mode 100644 index 00000000000..c4e36e9c28b --- /dev/null +++ b/src/sage/rings/padics/all__sagemath_categories.py @@ -0,0 +1 @@ +from .padic_generic import local_print_mode diff --git a/src/sage/rings/padics/all__sagemath_flint.py b/src/sage/rings/padics/all__sagemath_flint.py new file mode 100644 index 00000000000..d91f726d26f --- /dev/null +++ b/src/sage/rings/padics/all__sagemath_flint.py @@ -0,0 +1,2 @@ + +from .all__sagemath_ntl import * diff --git a/src/sage/rings/padics/all__sagemath_ntl.py b/src/sage/rings/padics/all__sagemath_ntl.py new file mode 100644 index 00000000000..de062b61275 --- /dev/null +++ b/src/sage/rings/padics/all__sagemath_ntl.py @@ -0,0 +1,4 @@ + +from .all__sagemath_pari import * + +from .pow_computer_ext import PowComputer_ext_maker diff --git a/src/sage/rings/padics/all__sagemath_pari.py b/src/sage/rings/padics/all__sagemath_pari.py new file mode 100644 index 00000000000..4833e7a7e99 --- /dev/null +++ b/src/sage/rings/padics/all__sagemath_pari.py @@ -0,0 +1,10 @@ + +from .all__sagemath_categories import * + +from .factory import Zp, Zq, Zp as pAdicRing, ZpCR, ZpCA, ZpFM, ZpFP, ZpLC, ZpLF, ZqCR, ZqCA, ZqFM, ZqFP, ZpER +from .factory import Qp, Qq, Qp as pAdicField, QpCR, QpFP, QpLC, QpLF, QqCR, QqFP, QpER +from .factory import pAdicExtension + +from .padic_printing import _printer_defaults as padic_printing + +from .pow_computer import PowComputer diff --git a/src/sage/rings/polynomial/all.py b/src/sage/rings/polynomial/all.py index 853f422bdc7..36311c7c0b7 100644 --- a/src/sage/rings/polynomial/all.py +++ b/src/sage/rings/polynomial/all.py @@ -18,18 +18,8 @@ from sage.misc.lazy_import import lazy_import -# Quotient of polynomial ring -from sage.rings.polynomial.polynomial_quotient_ring import PolynomialQuotientRing -from sage.rings.polynomial.polynomial_quotient_ring_element import PolynomialQuotientRingElement - -# Univariate Polynomial Rings -from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing -from sage.rings.polynomial.polynomial_ring import polygen, polygens -from sage.rings.polynomial.polynomial_element import Polynomial - -# Multivariate Polynomial Rings -from sage.rings.polynomial.term_order import TermOrder -from sage.rings.polynomial.multi_polynomial_element import degree_lowest_rational_function +from .all__sagemath_categories import * +from .all__sagemath_modules import * # Generic convolution from sage.rings.polynomial.convolution import convolution @@ -38,19 +28,8 @@ from sage.rings.polynomial.polynomial_ring_constructor import BooleanPolynomialRing_constructor as BooleanPolynomialRing # Laurent Polynomial Rings -from sage.rings.polynomial.laurent_polynomial_ring import LaurentPolynomialRing lazy_import('sage.rings.polynomial.omega', 'MacMahonOmega') -# Infinite Polynomial Rings -from sage.rings.polynomial.infinite_polynomial_ring import InfinitePolynomialRing - -# Ore Polynomial Rings -lazy_import('sage.rings.polynomial.ore_polynomial_ring', 'OrePolynomialRing') -SkewPolynomialRing = OrePolynomialRing - -# Evaluation of cyclotomic polynomials -from sage.rings.polynomial.cyclotomic import cyclotomic_value - # Integer-valued Univariate Polynomial Ring lazy_import('sage.rings.polynomial.integer_valued_polynomials', 'IntegerValuedPolynomialRing') diff --git a/src/sage/rings/polynomial/all__sagemath_brial.py b/src/sage/rings/polynomial/all__sagemath_brial.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/polynomial/all__sagemath_categories.py b/src/sage/rings/polynomial/all__sagemath_categories.py new file mode 100644 index 00000000000..2b79da92a4c --- /dev/null +++ b/src/sage/rings/polynomial/all__sagemath_categories.py @@ -0,0 +1,21 @@ +# Quotient of polynomial ring +from sage.rings.polynomial.polynomial_quotient_ring import PolynomialQuotientRing +from sage.rings.polynomial.polynomial_quotient_ring_element import PolynomialQuotientRingElement + +# Univariate Polynomial Rings +from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing +from sage.rings.polynomial.polynomial_ring import polygen, polygens +from sage.rings.polynomial.polynomial_element import Polynomial + +# Multivariate Polynomial Rings +from sage.rings.polynomial.term_order import TermOrder +from sage.rings.polynomial.multi_polynomial_element import degree_lowest_rational_function + +# Infinite Polynomial Rings +from sage.rings.polynomial.infinite_polynomial_ring import InfinitePolynomialRing + +# Laurent Polynomial Rings +from sage.rings.polynomial.laurent_polynomial_ring import LaurentPolynomialRing + +# Evaluation of cyclotomic polynomials +from sage.rings.polynomial.cyclotomic import cyclotomic_value diff --git a/src/sage/rings/polynomial/all__sagemath_flint.py b/src/sage/rings/polynomial/all__sagemath_flint.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/polynomial/all__sagemath_linbox.py b/src/sage/rings/polynomial/all__sagemath_linbox.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/polynomial/all__sagemath_modules.py b/src/sage/rings/polynomial/all__sagemath_modules.py new file mode 100644 index 00000000000..8634f2004c5 --- /dev/null +++ b/src/sage/rings/polynomial/all__sagemath_modules.py @@ -0,0 +1,6 @@ + +from sage.misc.lazy_import import lazy_import + +# Ore Polynomial Rings +lazy_import('sage.rings.polynomial.ore_polynomial_ring', 'OrePolynomialRing') +SkewPolynomialRing = OrePolynomialRing diff --git a/src/sage/rings/polynomial/all__sagemath_ntl.py b/src/sage/rings/polynomial/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/polynomial/all__sagemath_pari.py b/src/sage/rings/polynomial/all__sagemath_pari.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/polynomial/all__sagemath_singular.py b/src/sage/rings/polynomial/all__sagemath_singular.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/rings/polynomial/all__sagemath_symbolics.py b/src/sage/rings/polynomial/all__sagemath_symbolics.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/schemes/all.py b/src/sage/schemes/all.py index 23858c6f0c8..9c70d129ed3 100644 --- a/src/sage/schemes/all.py +++ b/src/sage/schemes/all.py @@ -20,6 +20,8 @@ # http://www.gnu.org/licenses/ #***************************************************************************** +from .all__sagemath_categories import * + from .jacobians.all import * from .hyperelliptic_curves.all import * @@ -32,16 +34,6 @@ from .plane_quartics.all import * -from .generic.all import * - -from .toric.all import * - -from .affine.all import * - -from .projective.all import * - -from .product_projective.all import * - from .cyclic_covers.all import * from .berkovich.all import * diff --git a/src/sage/schemes/all__sagemath_categories.py b/src/sage/schemes/all__sagemath_categories.py new file mode 100644 index 00000000000..49d803c968b --- /dev/null +++ b/src/sage/schemes/all__sagemath_categories.py @@ -0,0 +1,4 @@ +from .generic.all import * +from .affine.all import * +from .projective.all import * +from .product_projective.all import * diff --git a/src/sage/schemes/all__sagemath_ntl.py b/src/sage/schemes/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/schemes/all__sagemath_polyhedra.py b/src/sage/schemes/all__sagemath_polyhedra.py new file mode 100644 index 00000000000..2e641cf8c56 --- /dev/null +++ b/src/sage/schemes/all__sagemath_polyhedra.py @@ -0,0 +1 @@ +from .toric.all import * diff --git a/src/sage/schemes/hyperelliptic_curves/all__sagemath_ntl.py b/src/sage/schemes/hyperelliptic_curves/all__sagemath_ntl.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/stats/all.py b/src/sage/stats/all.py index 69fb8f01abd..253735e46d7 100644 --- a/src/sage/stats/all.py +++ b/src/sage/stats/all.py @@ -1,10 +1,12 @@ - -from .r import ttest from .basic_stats import (mean, mode, std, variance, median, moving_average) from .hmm import all as hmm +from sage.misc.lazy_import import lazy_import + +lazy_import("sage.stats.r", "ttest") + # We lazy_import the following modules since they import numpy which # slows down sage startup -from sage.misc.lazy_import import lazy_import + lazy_import("sage.stats.time_series", ["TimeSeries", "autoregressive_fit"]) lazy_import("sage.stats.intlist", ["IntList"]) diff --git a/src/sage/symbolic/all__sagemath_categories.py b/src/sage/symbolic/all__sagemath_categories.py new file mode 100644 index 00000000000..e69de29bb2d diff --git a/src/sage/symbolic/all__sagemath_standard_no_symbolics.py b/src/sage/symbolic/all__sagemath_standard_no_symbolics.py new file mode 100644 index 00000000000..e69de29bb2d