Skip to content

Commit

Permalink
Merge pull request #1985 from isuruf/flint23
Browse files Browse the repository at this point in the history
Fix flint headers and replace use of deprecated funcs in flint2/3
  • Loading branch information
isuruf committed Oct 31, 2023
2 parents 724e8c3 + 4f337bd commit 9b2526f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/install_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ if [[ "${WITH_BENCHMARKS_GOOGLE}" == "yes" ]]; then
fi

if [[ "${WITH_PIRANHA}" == "yes" ]]; then
conda_pkgs="$conda_pkgs piranha=0.11 cmake=3.24.3"
conda_pkgs="$conda_pkgs piranha=0.11 cmake=3.24.3 'boost-cpp<1.79.0'"
fi

if [[ "${WITH_PRIMESIEVE}" == "yes" ]]; then
Expand Down
8 changes: 6 additions & 2 deletions symengine/flint_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

#include <flint/fmpz.h>
#include <flint/fmpq.h>
#include <flint/fmpz_poly.h>
#include <flint/fmpz_poly_factor.h>
#include <flint/fmpq_poly.h>

namespace SymEngine
Expand Down Expand Up @@ -710,13 +712,15 @@ class fmpq_poly_wrapper
}
fmpq_poly_wrapper(const mpz_t z)
{
fmpz_wrapper fz(z);
fmpq_poly_init(poly);
fmpq_poly_set_mpz(poly, z);
fmpq_poly_set_fmpz(poly, fz.get_fmpz_t());
}
fmpq_poly_wrapper(const mpq_t q)
{
fmpq_wrapper fq(q);
fmpq_poly_init(poly);
fmpq_poly_set_mpq(poly, q);
fmpq_poly_set_fmpq(poly, fq.get_fmpq_t());
}
fmpq_poly_wrapper(const fmpq_wrapper &q)
{
Expand Down

0 comments on commit 9b2526f

Please sign in to comment.