Skip to content

Support for complex-values problems #177

@lgravina1997

Description

@lgravina1997

It seems that the present version does not support complex-valued problem. Let nlprob be a NonlinearProblem with uType Vector{ComplexF64}. Then

solve(nlprob, NewtonRaphson(), abstol = 1e-9)

yields ArgumentError: Cannot create a dual over scalar type ComplexF64. If the type behaves as a scalar, define ForwardDiff.can_dual(::Type{ComplexF64}) = true.

Is there a way around this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions