Skip to content

Commit

Permalink
changed the location of get_set functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Édouard Rousseau committed Oct 16, 2019
1 parent ed330d5 commit d0843f7
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 3 deletions.
3 changes: 3 additions & 0 deletions fq.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#endif

#include "fmpz_mod_poly.h"
#include "fmpz_mod_mat.h"
#include "ulong_extras.h"

/* Data types and context ****************************************************/
Expand Down Expand Up @@ -383,7 +384,9 @@ FLINT_DLL void fq_bit_unpack(fq_t rop, const fmpz_t f, flint_bitcnt_t bit_size,

#define T fq
#define CAP_T FQ
#define B fmpz_mod
#include "fq_templates.h"
#undef B
#undef CAP_T
#undef T

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
(at your option) any later version. See <http://www.gnu.org/licenses/>.
*/

#include "fq_embed.h"
#include "fq.h"

void fq_get_fmpz_mod_mat(fmpz_mod_mat_t col,
const fq_t a,
Expand Down
3 changes: 3 additions & 0 deletions fq_nmod.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#endif

#include "nmod_poly.h"
#include "nmod_mat.h"
#include "ulong_extras.h"

/* Data types and context ****************************************************/
Expand Down Expand Up @@ -416,7 +417,9 @@ FLINT_DLL void fq_nmod_bit_unpack(fq_nmod_t rop, const fmpz_t f, flint_bitcnt_t

#define T fq_nmod
#define CAP_T FQ_NMOD
#define B nmod
#include "fq_templates.h"
#undef B
#undef CAP_T
#undef T

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
(at your option) any later version. See <http://www.gnu.org/licenses/>.
*/

#include "fq_nmod_embed.h"
#include "fq_nmod.h"

void fq_nmod_get_nmod_mat(nmod_mat_t col,
const fq_nmod_t a,
Expand Down
10 changes: 10 additions & 0 deletions fq_templates.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ FLINT_DLL void TEMPLATE(T, div)(TEMPLATE(T, t) rop, const TEMPLATE(T, t) op1,
FLINT_DLL int TEMPLATE(T, multiplicative_order)(fmpz_t ord, const TEMPLATE(T, t) op,
const TEMPLATE(T, ctx_t) ctx);

#ifdef B
FLINT_DLL void TEMPLATE4(T, get, B, mat)(TEMPLATE(B, mat_t) col,
const TEMPLATE(T, t) a,
const TEMPLATE(T, ctx_t) ctx);
FLINT_DLL void TEMPLATE4(T, set, B, mat)(TEMPLATE(T, t) a,
const TEMPLATE(B, mat_t) col,
const TEMPLATE(T, ctx_t) ctx);
#endif


FQ_TEMPLATES_INLINE
int TEMPLATE(T, is_primitive)(const TEMPLATE(T, t) op, const TEMPLATE(T, ctx_t) ctx)
{
Expand Down
2 changes: 2 additions & 0 deletions fq_zech.h
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,9 @@ FLINT_DLL void fq_zech_bit_unpack(fq_zech_t rop, const fmpz_t f, flint_bitcnt_t

#define T fq_zech
#define CAP_T FQ_ZECH
#define B nmod
#include "fq_templates.h"
#undef B
#undef CAP_T
#undef T

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
(at your option) any later version. See <http://www.gnu.org/licenses/>.
*/

#include "fq_zech_embed.h"
#include "fq_zech.h"

void fq_zech_get_nmod_mat(nmod_mat_t col,
const fq_zech_t a,
Expand Down

0 comments on commit d0843f7

Please sign in to comment.