Skip to content

Add SCT support for derivatives and integrals #448

Description

@SouthEndMusic

SCT cannot handle functions which call the derivative or integral of interpolations, MWE:

using DataInterpolations
using SparseConnectivityTracer

t = [0.0, 1.0, 2.5, 4.0, 6.0]
u = sin.(t)

itp = PCHIPInterpolation(u, t)
f(x) = DataInterpolations.derivative(itp, x[1])

detector = TracerSparsityDetector()

x = [2.5]
jacobian_sparsity(f, x, detector)

@adrianhill I suppose this is doable if in the extension we also specify whether the third derivative is zero?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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