Skip to content

Repeated differentiation is not type stable #229

Open
@harris-mit

Description

@harris-mit

The function

function differentiate(p, x, deg::Val{N}) where N
...
end

is not type stable because sometimes it throws an error.
Should this be changed to the following?

function differentiate(p, x, deg::Val{N}) where N
    for i = 1:deg
        p = differentiate(p, x)
    end
    return p
end

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