Skip to content

Vector-valued functions #46

@landreman

Description

@landreman

Hi, what would be involved in applying TaylorDiff to vector-valued functions? When I try now (with Julia 1.9.2 and TaylorDiff 0.2.1 or main), TaylorDiff.derivative returns false instead of the correct derivative. Example:

using TaylorDiff
using ForwardDiff

f(x) = [x, 2x]

x0 = 0.2

@show ForwardDiff.derivative(f, x0)  # Returns [1.0, 2.0] as expected
@show TaylorDiff.derivative(f, x0, 1)  # Returns false

Thanks.

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