Giter Club home page Giter Club logo

Comments (7)

antoine-levitt avatar antoine-levitt commented on June 19, 2024

Hm, Optim.jl/test/multivariate/complex.jl contains similar codes, that should also fail. @pkofod can you revert?

from nlsolversbase.jl.

pkofod avatar pkofod commented on June 19, 2024

We should have had tests like that here. Sorry about that.

from nlsolversbase.jl.

mfherbst avatar mfherbst commented on June 19, 2024

No worries. Thanks for the quick reply!

from nlsolversbase.jl.

pkofod avatar pkofod commented on June 19, 2024

If you're looking for a quick fix, you can just specify the input yourself, but if I cannot find a fix, I'll just revert it(see #118) but this should work, right?

OnceDifferentiable(x -> sum(abs2, x), x0, 0.0, x0) #x-like, F-like, G-like

from nlsolversbase.jl.

mfherbst avatar mfherbst commented on June 19, 2024

Yes that workaround works, thanks.

from nlsolversbase.jl.

pkofod avatar pkofod commented on June 19, 2024

Yes that workaround works, thanks.

I didn't intend for that to be required for complex input though, so it's only until I get to fix this. At the very least I can special case it for !isreal input. Again, sorry for the inconvenience.

from nlsolversbase.jl.

mfherbst avatar mfherbst commented on June 19, 2024

No worries. It's easy to overlook "special" cases such as that. Best lesson to be learned is to really put such stuff into test cases and make sure it never happens. 😄

from nlsolversbase.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.