mirror of
https://github.com/BachoSeven/homotopy-continuation.git
synced 2026-10-06 22:55:15 +00:00
Use a step_array
This commit is contained in:
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
|
||||||
|
|||||||
Reference in New Issue
Block a user