Can Enzyme find derivatives of complex valued functions?

48 views
Skip to first unread message

ben s

unread,
Oct 4, 2024, 4:38:23 PM10/4/24
to Enzyme AD
For an example, If I have the following function

std::complex<double> Foo(const std::complex<double>& x, 
                                                 const std::complex<double>& y) {
  return (x - y)/(x + y);
}

Can Enzyme be used to find dFoo/dx and dFoo/dy?

Thanks!
Reply all
Reply to author
Forward
0 new messages