Use a step_array

main
Francesco Minnocci 1 year ago
parent b35e59efd7
commit 6edc93d215
Signed by untrusted user: BachoSeven
GPG Key ID: 2BE4AB7FDAD828A4

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

@ -20,7 +20,7 @@ function solve(F, (G, roots) = start_system(F), maxsteps=10000)
# F=homogenize(F) # F=homogenize(F)
H=homotopy(F,G) H=homotopy(F,G)
solutions = [] solutions = []
steps = 0 step_array = []
@time Threads.@threads for r in roots @time Threads.@threads for r in roots
t = 1.0 t = 1.0
@ -37,9 +37,10 @@ function solve(F, (G, roots) = start_system(F), maxsteps=10000)
steps += 1 steps += 1
end end
push!(solutions, x0) push!(solutions, x0)
push!(step_array, steps)
end end
return (solutions, steps) return (solutions, step_array)
end end
# Input polynomial system # Input polynomial system

Loading…
Cancel
Save