ChainRules.jl icon indicating copy to clipboard operation
ChainRules.jl copied to clipboard

Optimize power rule

Open YingboMa opened this issue 2 years ago • 2 comments

* is often faster than /.

YingboMa avatar Feb 15 '23 04:02 YingboMa

The hard part was getting all the weird edge cases to work. If introducing extra branches like if isinteger(p), you may need to expand the list of test cases to check both halves.

mcabbott avatar Feb 16 '23 04:02 mcabbott

@YingboMa are you going to add the missing test so we can merge this?

oxinabox avatar Feb 27 '23 08:02 oxinabox