Skip to content

impossible to differentiate over integer array #10

Description

@lliill

l(xu) = sum(sqrt(i^2 + 1) for i in xu)
xu = Vector(1:6)
result = DiffResults.HessianResult(xu)

result = ForwardDiff.hessian!(result, l, xu) will give
InexactError: Int64(Int64, 22.11744686954993)

Problem will be solve if xu = Vector{Float64}(1:6)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions