Skip to content

Commit

Permalink
Add more QQFieldElem and ZZRingElem ccalls (#1866)
Browse files Browse the repository at this point in the history
- add some missing add!, mul!, etc. methods
- add more efficient +, -, * methods for a ZZRingElem or QQFieldElem
  as first argument, and an integer as second argument
- optimize is_one and is_zero for QQFieldElem
- drop some pointless uses of `@inline`
- add `cmp` for QQFieldElem and use it
- add numerator! and denominator!
- change a bunch of "unsafe" methods to accept ZZRingElemOrPtr resp.
  QQFieldElemOrPtr instead of just ZZRingElem and QQFieldElem to
  make them more flexible
---------

Co-authored-by: Lars Göttgens <lars.goettgens@gmail.com>
  • Loading branch information
fingolfin and lgoettgens authored Sep 26, 2024
1 parent 52ef106 commit 1b6961c
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 191 deletions.
2 changes: 2 additions & 0 deletions src/Exports.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export degree_fmpz
export degrees
export degrees_fit_int
export degrees_fmpz
#export denominator! # not exported for now to avoid clash with Hecke
export derivative
export det
export det_divisor
Expand Down Expand Up @@ -464,6 +465,7 @@ export nullspace_right_rational
export number_field
export number_of_partitions
export numpart
#export numerator! # not exported for now to avoid clash with Hecke
export oct
export one
export one!
Expand Down
Loading

0 comments on commit 1b6961c

Please sign in to comment.