We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
using NonlinearSolve N = 100_000; levels = 1.5 .* rand(N); out = zeros(N); myfun(x, lv) = x * sin(x) - lv function f(out, levels, u0) for i in 1:N out[i] = solve(NonlinearProblem{false}(NonlinearFunction{false}(myfun), u0, levels[i]), Falsi()).u end end function f2(out, levels, u0) for i in 1:N out[i] = solve(NonlinearProblem{false}(NonlinearFunction{false}(myfun), u0, levels[i]), NewtonRaphson()).u end end @time f(out, levels, (0.0, 2.0)) @time f2(out, levels, 1.0)
The text was updated successfully, but these errors were encountered:
Merge pull request #87 from SciML/matrix_resizing
aa27e6a
Add matrix resizing and fix cases with u0 as a matrix
No branches or pull requests
The text was updated successfully, but these errors were encountered: