Skip to content

Commit bb7fbb8

Browse files
authored
Merge pull request #49 from ederc/rat_param
Rational parametrization
2 parents 6719e08 + 004cc63 commit bb7fbb8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/algorithms/solvers.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ function _core_msolve(
5959
max_nr_pairs::Int=0, # number of pairs maximally chosen
6060
# in symbolic preprocessing
6161
la_option::Int=2, # linear algebra option
62+
get_param::Int=1, # get rational parametrization
6263
info_level::Int=0, # info level for print outs
6364
precision::Int=32 # precision of the solution set
6465
)
@@ -76,7 +77,6 @@ function _core_msolve(
7677

7778
reset_ht = 0
7879
print_gb = 0
79-
get_param = 1
8080

8181
mon_order = 0
8282
elim_block_size = 0
@@ -151,6 +151,10 @@ function _core_msolve(
151151

152152
I.rat_param = RationalParametrization(vsymbols, rat_param[1],rat_param[2],
153153
rat_param[3], rat_param[4])
154+
if get_param == 2
155+
return rat_param, undef
156+
end
157+
154158
if jl_nb_sols == 0
155159
I.real_sols = QQFieldElem[]
156160
I.inter_sols = Vector{QQFieldElem}[]
@@ -253,6 +257,7 @@ function rational_parametrization(
253257
max_nr_pairs = max_nr_pairs,
254258
la_option = la_option,
255259
info_level = info_level,
260+
get_param = 2, # only rational parametrization, no solutions are computed
256261
precision = precision)
257262

258263
return I.rat_param

0 commit comments

Comments
 (0)