Skip to content

Spline derivatives issue #32

@cc7768

Description

@cc7768
using BasisMatrices

x = linspace(0.0, 5.0, 25)
p = SplineParams(x, 0, 3)

itp = BasisMatrices.Interpoland(Basis(p), [nodes(p).^2 nodes(p).^3])

pts = [1.0, 2.0, 3.0]

println(itp(1.0, reshape([0, 1], (2, 1))))
println(itp(1.0, reshape([0, 1], (1, 2))))
println(itp(1.0, reshape([1], (1, 1))))

The first print command should give the level and first derivative of the two functions

The second print command should compute df(x)/dy and should fail because there isn't a second dimension to take a derivative with respect to.

The third print command reacts as expected.

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