From e22e0f6a4c082ac2277b1abd5a6aae5b41955e8c Mon Sep 17 00:00:00 2001 From: Francesco Minnocci Date: Wed, 23 Aug 2023 14:43:19 +0200 Subject: [PATCH] feat: add multi-threading --- solve.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solve.jl b/solve.jl index 7197323..3c7e461 100644 --- a/solve.jl +++ b/solve.jl @@ -21,7 +21,7 @@ function solve(F, (G, roots) = start_system(F), maxsteps=10000) H=homotopy(F,G) solutions = [] - for r in roots + @time Threads.@threads for r in roots t = 1.0 step_size = 0.01 x0 = r