Skip to content

Commit

Permalink
Merge pull request #184 from linbox-team/ZRingResElt
Browse files Browse the repository at this point in the history
zring residu is now an element (should behave like an integer anyway)
  • Loading branch information
ClementPernet authored Dec 2, 2021
2 parents 232db21 + 67561ff commit 250fe2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/kernel/ring/zring.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ namespace Givaro
using Rep = _Element;
using Self_t = UnparametricZRing<Element>;
using Parent_t = UnparametricOperations<Element>;
using Residu_t = int64_t; // Unparametric have no residue, this is used only for cardinality/characteristic
// Unparametric have no residue,
// this is used only for cardinality/characteristic which behave like integers
// with a ZRing the element is supposed to behave like an integer
using Residu_t = _Element;
using Element_ptr = Element*;
using ConstElement_ptr = const Element*;
enum { size_rep = sizeof(Element) };
Expand Down

0 comments on commit 250fe2d

Please sign in to comment.