Skip to content

Lost functionality with new way of handling init argument? #49

@papamarkou

Description

@papamarkou

Hi @fredo-dedup, there is sth that stopped working with the recent change of interface for the init input argument of rdiff(). Say that I have an expression with two variables x and v, of types Vector{Float64} and Vector{Any}. This won't work anymore:

using ReverseDiffSource
rdiff(:(v[1]*x+v[2]), x=Vector{Float64}, v=Any[Matrix{Float64}, Vector{Float64}], ignore=:v)

In the past, it was possible to do sth along the lines:

using ReverseDiffSource
rdiff(:(v[1]*x+v[2]), x=ones(2), v=Any[ones(2, 2), ones(2)], ignore=:v)

Is there a solution that wouldn't require breaking the existing interface in Klara?

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