diff options
Diffstat (limited to 'src/math/gens.c')
| -rw-r--r-- | src/math/gens.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/math/gens.c b/src/math/gens.c index f224386..ef47525 100644 --- a/src/math/gens.c +++ b/src/math/gens.c @@ -3,6 +3,7 @@ * Copyright (C) 2017 J08nY */ #include "gens.h" +#include "io/output.h" #include "point.h" static int gens_put(curve_t *curve, GEN generators, long len) { @@ -38,3 +39,10 @@ int gens_one(curve_t *curve, const config_t *cfg, arg_t *args) { } return gens_put(curve, generators, len); } + +int gens_unroll(curve_t *curve, const config_t *cfg, pari_sp from, pari_sp to) { + if (curve->generators) { + points_free_deep(&curve->generators, curve->ngens); + } + return -1; +} |
