-
Notifications
You must be signed in to change notification settings - Fork 63
/
AbstractAlgebra.jl
1374 lines (1261 loc) · 33.6 KB
/
AbstractAlgebra.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@doc raw"""
AbstractAlgebra is a pure Julia package for computational abstract algebra.
For more information see https://github.com/Nemocas/AbstractAlgebra.jl
"""
module AbstractAlgebra
using Random: SamplerTrivial, GLOBAL_RNG
using RandomExtensions: RandomExtensions, make, Make, Make2, Make3, Make4
using InteractiveUtils
using Preferences
using Test # for "interface-conformance" functions
# A list of all symbols external packages should not import from AbstractAlgebra
const import_exclude = [:import_exclude, :QQ, :ZZ,
:RealField, :GF,
:AbstractAlgebra,
:inv, :log, :exp, :sqrt, :div, :divrem,
:numerator, :denominator,
:promote_rule,
:Set, :Module, :Group,
]
# If you want to add methods to functions in LinearAlgebra they should be
# imported here and in Generic.jl, and exported below.
# They should not be imported/exported anywhere else.
import LinearAlgebra
import LinearAlgebra: det
import LinearAlgebra: dot
import LinearAlgebra: hessenberg
import LinearAlgebra: ishermitian
import LinearAlgebra: issymmetric
import LinearAlgebra: isdiag
import LinearAlgebra: istril
import LinearAlgebra: istriu
import LinearAlgebra: lu
import LinearAlgebra: lu!
import LinearAlgebra: norm
import LinearAlgebra: nullspace
import LinearAlgebra: rank
import LinearAlgebra: tr
################################################################################
#
# Import/export philosophy
#
# For certain julia Base types and Base function, e.g. BigInt and div or exp, we
# need a different behavior. These functions are not exported.
#
# Take for example exp. Since exp is not imported from Base, there are two exp
# functions, AbstractAlgebra.exp and Base.exp. Inside AbstractAlgebra, exp
# will always refer to AbstractAlgebra.exp. When calling the function, one
# should just use "exp" without namespace qualifcation.
#
# On the other hand, if an AbstractAlgebra type wants to add a method to exp,
# it must add a method to "Base.exp".
#
# The rational for this is as follows: If we do "using AbstractAlgebra" in the
# REPL, then "exp" will refer to the Base.exp. So if we want to make exp(a)
# work in the REPL for an AbstractAlgebra type, we have to overload Base.exp.
#
################################################################################
# This is the list of functions for which we locally have a different behavior.
const Base_import_exclude = [:exp, :log, :sqrt, :inv, :div, :divrem, :numerator,
:denominator]
################################################################################
#
# Functions that we do not import from Base
#
################################################################################
function exp(a::T) where T
return Base.exp(a)
end
function log(a::T) where T
return Base.log(a)
end
function sqrt(a::T; check::Bool=true) where T
return Base.sqrt(a; check=check)
end
function divrem(a::T, b::T) where T
return Base.divrem(a, b)
end
function div(a::T, b::T) where T
return Base.div(a, b)
end
function inv(a::T) where T
return Base.inv(a)
end
function numerator(a::T, canonicalise::Bool=true) where T
return Base.numerator(a, canonicalise)
end
function denominator(a::T, canonicalise::Bool=true) where T
return Base.denominator(a, canonicalise)
end
# If you want to add methods to functions in Base they should be imported here
# and in Generic.jl.
# They should not be imported/exported anywhere else.
import Base: abs
import Base: acos
import Base: acosh
import Base: Array
import Base: asin
import Base: asinh
import Base: atan
import Base: atanh
import Base: axes
import Base: bin
import Base: ceil
import Base: checkbounds
import Base: cmp
import Base: conj
import Base: conj!
import Base: convert
import Base: cos
import Base: cosh
import Base: cospi
import Base: cot
import Base: coth
import Base: dec
import Base: deepcopy
import Base: deepcopy_internal
import Base: expm1
import Base: exponent
import Base: fill
import Base: floor
import Base: gcd
import Base: gcdx
import Base: getindex
import Base: hash
import Base: hcat
import Base: hex
import Base: hypot
import Base: intersect
import Base: invmod
import Base: isequal
import Base: isfinite
import Base: isless
import Base: isone
import Base: isqrt
import Base: isreal
import Base: iszero
import Base: lcm
import Base: ldexp
import Base: length
import Base: log1p
import Base: mod
import Base: ndigits
import Base: oct
import Base: one
import Base: parent
import Base: parse
import Base: powermod
import Base: precision
import Base: rand
import Base: Rational
import Base: rem
import Base: reverse
import Base: setindex!
import Base: show
import Base: sign
import Base: similar
import Base: sin
import Base: sincos
import Base: sinh
import Base: sinpi
import Base: size
import Base: string
import Base: tan
import Base: tanh
import Base: trailing_zeros
import Base: transpose
import Base: truncate
import Base: typed_hcat
import Base: typed_hvcat
import Base: typed_vcat
import Base: vcat
import Base: xor
import Base: zero
import Base: zeros
import Base: +
import Base: -
import Base: *
import Base: ==
import Base: ^
import Base: &
import Base: |
import Base: <<
import Base: >>
import Base: ~
import Base: <=
import Base: >=
import Base: <
import Base: >
import Base: //
import Base: /
import Base: !=
using Random: Random, AbstractRNG, SamplerTrivial
using RandomExtensions: RandomExtensions, make, Make2
export AbsPowerSeriesRingElem
export add!
export addeq!
export AdditiveGroupElem
export crt
export crt_with_lcm
export elem_type
export ErrorConstrDimMismatch
export factor
export factor_squarefree
export Field
export FieldElem
export FieldElement
export FinField
export FinFieldElem
export FracElem
export FracField
export FreeAssAlgebra
export FreeAssAlgElem
export FunctionalMap
export Group
export GroupElem
export hgcd
export Ideal
export IdealSet
export IdentityMap
export InfiniteOrderError
export is_irreducible
export is_squarefree
export is_perfect
export ItemQuantity
export LaurentMPolyRing
export LaurentMPolyRingElem
export LaurentPolyRing
export LaurentPolyRingElem
export Map
export MatRing
export MatRingElem
export MatElem
export MatSpace
export ModuleElem
export MPolyRing
export MPolyRingElem
export mul!
export NCPolyRingElem
export NCRing
export NCRingElem
export NCRingElement
export NotImplementedError
export NotInvertibleError
export NumField
export NumFieldElem
export ordinal_number_string
export parent_type
export pluralize
export PolyRing
export PolyRingElem
export qq
export QQ
export RDF
export RealField
export RelPowerSeriesRingElem
export ResElem
export ResidueRing
export Ring
export RingElem
export RingElement
export SeriesElem
export SeriesRing
export SetElem
export SetMap
export SimpleNumField
export SimpleNumFieldElem
export sub!
export UniversalPolyRing
export UniversalPolyRingElem
export VarName
export zero!
export zeros
export zz
export ZZ
include("Attributes.jl")
include("AliasMacro.jl")
include("PrintHelper.jl")
# alternative names for some functions from Base
export is_empty
export is_equal
export is_even
export is_finite
export is_inf
export is_integer
export is_less
export is_odd
export is_one
export is_real
export is_subset
export is_valid
export is_zero
export number_of_digits
@alias is_empty isempty
@alias is_even iseven
@alias is_equal isequal
@alias is_finite isfinite
@alias is_inf isinf
@alias is_integer isinteger
@alias is_less isless
@alias is_odd isodd
@alias is_one isone
@alias is_real isreal
@alias is_subset issubset
@alias is_valid isvalid
@alias is_zero iszero
@alias number_of_digits ndigits
function order end
# alternative names for some functions from LinearAlgebra
# we don't use the `@alias` macro here because we provide custom
# docstrings for these aliases
const is_diagonal = isdiag
const is_hermitian = ishermitian
const is_symmetric = issymmetric
const is_lower_triangular = istril
const is_upper_triangular = istriu
# alternative names for some of our own functions
function number_of_columns end
function number_of_generators end
function number_of_rows end
function number_of_variables end
export number_of_columns
export number_of_generators
export number_of_rows
export number_of_variables
@alias ncols number_of_columns
@alias ngens number_of_generators
@alias nrows number_of_rows
@alias nvars number_of_variables
###############################################################################
# generic fall back if no immediate coercion is possible
# can/ should be called for more generic general coercion mechanisms
#tries to turn b into an element of a
# applications (in outside AbstractAlgebra so far)
# - number fields (different cyclotomics, ie. coerce zeta_n into
# cyclo(m*n)
# - finite fields (although they roll their own)
# - unram. local fields
# - modules, abelian groups
#
# intended usage
# (a::Ring)(b::elem_type(a))
# parent(b) == a && return a
# return force_coerce(a, b)
#
function force_coerce(a, b, throw_error::Type{Val{T}} = Val{true}) where {T}
if throw_error === Val{true}
error("coercion not possible")
end
return nothing
end
#to allow +(a::T, b::T) where a, b have different parents, but
# a common over structure
# designed(?) to be minimally invasive in AA and Nemo, but filled with
# content in Hecke/Oscar
function force_op(op::Function, throw_error::Type{Val{T}}, a...) where {T}
if throw_error === Val{true}
error("no common overstructure for the arguments found")
end
return false
end
function force_op(op::Function, a...)
return force_op(op, Val{true}, a...)
end
###############################################################################
#
# Weak key id dictionaries
#
###############################################################################
include("WeakKeyIdDict.jl")
###############################################################################
#
# Weak value dictionaries
#
###############################################################################
include("WeakValueDict.jl")
###############################################################################
#
# Type for the Hash dictionary
#
###############################################################################
const CacheDictType = WeakValueDict
function get_cached!(default::Base.Callable, dict,
key,
use_cache::Bool)
return use_cache ? Base.get!(default, dict, key) : default()
end
###############################################################################
#
# Types
#
################################################################################
include("AbstractTypes.jl")
const PolynomialElem{T} = Union{PolyRingElem{T}, NCPolyRingElem{T}}
const MatrixElem{T} = Union{MatElem{T}, MatRingElem{T}}
###############################################################################
#
# Julia types
#
###############################################################################
include("julia/JuliaTypes.jl")
###############################################################################
#
# Fundamental interface for AbstractAlgebra
#
###############################################################################
include("fundamental_interface.jl")
################################################################################
#
# Printing
#
################################################################################
include("PrettyPrinting.jl")
import .PrettyPrinting: @enable_all_show_via_expressify
import .PrettyPrinting: @show_name
import .PrettyPrinting: @show_special
import .PrettyPrinting: @show_special_elem
import .PrettyPrinting: allow_unicode
import .PrettyPrinting: canonicalize
import .PrettyPrinting: expr_to_latex_string
import .PrettyPrinting: expr_to_string
import .PrettyPrinting: expressify
import .PrettyPrinting: extra_name
import .PrettyPrinting: get_current_module
import .PrettyPrinting: get_html_as_latex
import .PrettyPrinting: get_name
import .PrettyPrinting: get_syntactic_sign_abs
import .PrettyPrinting: is_syntactic_one
import .PrettyPrinting: is_syntactic_zero
import .PrettyPrinting: is_unicode_allowed
import .PrettyPrinting: obj_to_latex_string
import .PrettyPrinting: obj_to_string
import .PrettyPrinting: obj_to_string_wrt_times
import .PrettyPrinting: print_integer_string
import .PrettyPrinting: print_obj
import .PrettyPrinting: printer
import .PrettyPrinting: set_current_module
import .PrettyPrinting: set_name!
import .PrettyPrinting: set_html_as_latex
import .PrettyPrinting: show_obj
import .PrettyPrinting: show_via_expressify
import .PrettyPrinting: with_unicode
import .PrettyPrinting: pretty
import .PrettyPrinting: LowercaseOff
import .PrettyPrinting: Lowercase
import .PrettyPrinting: Indent
import .PrettyPrinting: Dedent
export @enable_all_show_via_expressify
###############################################################################
#
# Generic algorithms defined on abstract types
#
###############################################################################
include("algorithms/LaurentPoly.jl")
include("algorithms/FinField.jl")
include("algorithms/GenericFunctions.jl")
include("CommonTypes.jl") # types needed by AbstractAlgebra and Generic
include("Poly.jl")
include("NCPoly.jl")
include("Matrix.jl")
include("Matrix-Strassen.jl")
include("MatRing.jl")
include("AbsSeries.jl")
include("RelSeries.jl")
include("LaurentPoly.jl")
include("FreeModule.jl")
include("Submodule.jl")
include("QuotientModule.jl")
include("Module.jl")
include("InvariantFactorDecomposition.jl")
include("DirectSum.jl")
include("Map.jl")
include("MapCache.jl")
include("MapWithInverse.jl")
include("ModuleHomomorphism.jl")
include("Ideal.jl")
include("YoungTabs.jl")
include("PermGroups.jl")
include("LaurentSeries.jl")
include("PuiseuxSeries.jl")
include("SparsePoly.jl")
include("AbsMSeries.jl")
include("RationalFunctionField.jl")
include("Residue.jl")
include("ResidueField.jl")
include("Fraction.jl")
include("TotalFraction.jl")
include("MPoly.jl")
include("UnivPoly.jl")
include("FreeAssAlgebra.jl")
include("LaurentMPoly.jl")
include("MatrixNormalForms.jl")
###############################################################################
#
# Generic submodule
#
###############################################################################
include("Generic.jl")
# Do not import div, divrem, exp, inv, log, sqrt, numerator and denominator
# as we have our own
import .Generic: @perm_str
import .Generic: abs_series_type
import .Generic: base_field
import .Generic: basis
import .Generic: character
import .Generic: collength
import .Generic: combine_like_terms!
import .Generic: cycles
import .Generic: defining_polynomial
import .Generic: degrees
import .Generic: dense_matrix_type
import .Generic: dim
import .Generic: disable_cache!
import .Generic: downscale
import .Generic: EuclideanRingResidueField
import .Generic: EuclideanRingResidueFieldElem
import .Generic: EuclideanRingResidueRing
import .Generic: EuclideanRingResidueRingElem
import .Generic: enable_cache!
import .Generic: exp_gcd
import .Generic: exponent
import .Generic: exponent_vector
import .Generic: exponent_word
import .Generic: finish
import .Generic: fit!
import .Generic: function_field
import .Generic: gcd
import .Generic: gcdx
import .Generic: groebner_basis
import .Generic: has_bottom_neighbor
import .Generic: has_left_neighbor
import .Generic: hash
import .Generic: hooklength
import .Generic: image_fn
import .Generic: image_map
import .Generic: internal_ordering
import .Generic: interreduce!
import .Generic: inv!
import .Generic: inverse_fn
import .Generic: inverse_image_fn
import .Generic: inverse_mat
import .Generic: invmod
import .Generic: is_compatible
import .Generic: is_divisible_by
import .Generic: is_homogeneous
import .Generic: is_power
import .Generic: is_rimhook
import .Generic: is_submodule
import .Generic: is_unit
import .Generic: isone
import .Generic: laurent_ring
import .Generic: laurent_series
import .Generic: lcm
import .Generic: leading_coefficient
import .Generic: leading_exponent_vector
import .Generic: leading_exponent_word
import .Generic: leading_monomial
import .Generic: leading_term
import .Generic: leglength
import .Generic: length
import .Generic: main_variable
import .Generic: main_variable_extract
import .Generic: main_variable_insert
import .Generic: map1
import .Generic: map2
import .Generic: matrix_repr
import .Generic: max_fields
import .Generic: mod
import .Generic: monomial
import .Generic: monomial_iszero
import .Generic: monomial_set!
import .Generic: monomial!
import .Generic: monomials
import .Generic: MPolyBuildCtx
import .Generic: mullow_karatsuba
import .Generic: norm
import .Generic: normal_form
import .Generic: normalise
import .Generic: num_coeff
import .Generic: one
import .Generic: order
import .Generic: parity
import .Generic: partitionseq
import .Generic: perm
import .Generic: permtype
import .Generic: polcoeff
import .Generic: poly
import .Generic: poly_ring
import .Generic: precision
import .Generic: preimage_map
import .Generic: prime
import .Generic: push_term!
import .Generic: reduce!
import .Generic: rel_series_type
import .Generic: rels
import .Generic: rescale!
import .Generic: retraction_map
import .Generic: reverse
import .Generic: rising_factorial
import .Generic: rising_factorial2
import .Generic: rowlength
import .Generic: section_map
import .Generic: set_exponent_vector!
import .Generic: set_exponent_word!
import .Generic: set_limit!
import .Generic: setcoeff!
import .Generic: setpermstyle
import .Generic: size
import .Generic: sort_terms!
import .Generic: summands
import .Generic: supermodule
import .Generic: term
import .Generic: terms
import .Generic: to_univariate
import .Generic: total_degree
import .Generic: trailing_coefficient
import .Generic: truncate
import .Generic: unit
import .Generic: upscale
import .Generic: weights
import .Generic: zero
# Moved from Hecke into Misc
import .Generic: LocalizedEuclideanRing
import .Generic: localization
import .Generic: LocalizedEuclideanRingElem
import .Generic: roots
import .Generic: sturm_sequence
###############################################################################
#
# Linear solving submodule
#
###############################################################################
include("Solve.jl")
import ..Solve: solve
import ..Solve: solve_init
import ..Solve: can_solve
import ..Solve: can_solve_with_solution
import ..Solve: can_solve_with_solution_and_kernel
# Do not export inv, div, divrem, exp, log, sqrt, numerator and denominator as we define our own
export _check_dim
export _checkbounds
export @alias
export @attr
export @attributes
export @free_associative_algebra
export @laurent_polynomial_ring
export @perm_str
export @polynomial_ring
export @power_series_ring
export @rational_function_field
export abs_series
export abs_series_type
export AbsPowerSeriesRing
export add_column
export add_column!
export add_row
export add_row!
export addmul_delayed_reduction!
export addmul!
export AllParts
export AllPerms
export allow_unicode
export base_field
export base_ring
export base_ring_type
export basis
export block_diagonal_matrix
export cached
export can_solve
export can_solve_with_solution
export can_solve_with_solution_and_kernel
export canonical_unit
export change_base_ring
export change_coefficient_ring
export character
export characteristic
export charpoly
export charpoly_danilevsky_ff!
export charpoly_danilevsky!
export charpoly_hessenberg!
export chebyshev_t
export chebyshev_u
export check_composable
export check_parent
export codomain
export coeff
export coefficient_ring
export coefficients
export coefficients_of_univariate
export collength
export combine_like_terms!
export comm
export comm!
export compose
export conj!
export constant_coefficient
export content
export cycles
export data
export defining_polynomial
export deflate
export deflation
export degree
export degrees
export denest
export dense_matrix_type
export dense_poly_ring_type
export dense_poly_type
export derivative
export det
export det_popov
export diagonal_matrix
export dim
export direct_sum
export disable_cache!
export discriminant
export div_left
export div_left!
export div_right
export div_right!
export divexact
export divexact_left
export divexact_low
export divexact_right
export divhigh
export divides
export domain
export downscale
export echelon_form
export echelon_form_with_transformation
export elem_type
export enable_cache!
export EuclideanRingResidueField
export EuclideanRingResidueFieldElem
export EuclideanRingResidueRing
export EuclideanRingResidueRingElem
export evaluate
export exp_gcd
export exponent
export exponent_vector
export exponent_vectors
export exponent_word
export exponent_words
export extended_weak_popov
export extended_weak_popov_with_transform
export exterior_power
export Fac
export FactoredFractionField
export fflu
export fflu!
export find_pivot_popov
export finish
export fit!
export fraction_field
export free_associative_algebra
export free_module
export FreeModule
export function_field
export gcd
export gcd_with_cofactors
export gcdinv
export gcdx
export gen
export gens
export get_attribute
export get_attribute!
export gram
export has_attribute
export has_bottom_neighbor
export has_gens
export has_left_neighbor
export hash
export hermite_form
export hermite_form_with_transformation
export hessenberg
export hessenberg!
export hnf
export hnf_cohen
export hnf_cohen_with_transform
export hnf_kb
export hnf_kb_with_transform
export hnf_kb!
export hnf_minors
export hnf_minors_with_transform
export hnf_via_popov
export hnf_via_popov_with_transform
export hnf_with_transform
export hooklength
export ideal
export identity_map
export identity_matrix
export image
export image_fn
export image_map
export inflate
export integral
export internal_ordering
export interpolate
export inv!
export invariant_factors
export inverse_fn
export inverse_image_fn
export inverse_mat
export invmod
export is_compatible
export is_constant
export is_degree
export is_diagonal
export is_divisible_by
export is_domain_type
export is_exact_type
export is_finiteorder
export is_gen
export is_hermitian
export is_hessenberg
export is_hnf
export is_homogeneous
export is_invertible
export is_invertible_with_inverse
export is_isomorphic
export is_lower_triangular
export is_monic
export is_monomial
export is_monomial_recursive
export is_negative
export is_popov
export is_positive
export is_reverse
export is_rimhook
export is_rref
export is_skew_symmetric
export is_snf
export is_square
export is_submodule
export is_symmetric
export is_term
export is_term_recursive
export is_trivial
export is_unicode_allowed
export is_unit
export is_univariate
export is_upper_triangular
export is_weak_popov
export is_zero_column
export is_zero_divisor
export is_zero_divisor_with_annihilator
export is_zero_entry
export is_zero_row
export kernel
export kronecker_product
export laurent_ring
export laurent_series
export laurent_series_field
export laurent_series_ring
export laurent_polynomial_ring
export lcm
export leading_coefficient
export leading_exponent_vector
export leading_exponent_word
export leading_monomial
export leading_term
export leglength
export length
export lift
export lower_triangular_matrix
export lu
export lu!
export main_variable
export main_variable_extract
export main_variable_insert
export map_coefficients
export map_entries
export map_entries!
export map_from_func
export map_with_preimage_from_func
export map_with_retraction
export map_with_retraction_from_func
export map_with_section
export map_with_section_from_func
export map1
export map2
export matrix
export matrix_repr
export matrix_ring
export matrix_space
export MatrixElem
export max_fields
export max_precision
export minors
export minpoly
export mod
export module_homomorphism
export module_isomorphism
export ModuleHomomorphism
export ModuleIsomorphism
export modulus
export monomial
export monomial_iszero
export monomial_set!
export monomial_to_newton!
export monomial!
export monomials
export mpoly_type
export mpoly_ring_type
export MPolyBuildCtx
export mul_classical
export mul_karatsuba
export mul_ks
export mul_red!
export mulhigh_n
export mullow
export mullow_karatsuba
export mulmod
export multiply_column
export multiply_column!
export multiply_row
export multiply_row!
export newton_to_monomial!
export norm
export normal_form
export normalise
export nullspace
export num_coeff
export O
export one
export one!
export order
export parent_type
export parity
export Partition
export partitionseq
export perm
export Perm
export permtype
export pfaffian
export pfaffians