Enzyme icon indicating copy to clipboard operation
Enzyme copied to clipboard

Unsupported operators when differentiating `std::complex` operations

Open shadow-orange41 opened this issue 6 months ago • 1 comments

I am trying to use Enzyme to differentiate functions involving std::complex values. I found that most operators are unsupported. Is this expected? Specifically,

  • pow(a, b) when a or b is a complex number
  • sin, cos, exp, sqrt, log, tan, asin, acos, atan, log1p, sinh, cosh, tanh, sinh, cosh, tanh

It seems that Enzyme's current support for differentiation involving complex numbers is quite limited. Is there any plan to extend the support?

shadow-orange41 avatar May 31 '26 18:05 shadow-orange41

can you share an example in the enzyme explorer website (enzyme.mit.edu/explorer)?

wsmoses avatar Jun 05 '26 18:06 wsmoses