Skip to content

Cannot Calculate the Jacobian of a Vectorized Function #584

@achrafmam2

Description

@achrafmam2

Consider the following operation function.

function softmax(xs)
  return exp.(xs) / sum(exp.(xs))
end

It was not possible to calculate the Jacobian of the above function.

@variables xs[1:3] 
Symbolics.jacobian(softmax(xs), xs) # Does not work.

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