Skip to content

Zygote Readme example of Jacobian etc #735

@azev77

Description

@azev77

The readme would benefit w/ examples of differentiating general f: Rn -> Rm

f1(x,y)=cos(x)+sin(y)
f2(x,y)=x^2 + y^2
f3(x,y)=log(x) + exp(y)
f(x,y)= [f1(x,y);f2(x,y);f3(x,y)]

gradient(f1, 1, 2)
gradient(f2, 1, 2)
gradient(f3, 1, 2)
gradient(f, 1, 2) # should be a Jacobian, don't know how to get it to 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