File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,8 @@ import SymbolicLimits
4747
4848using ADTypes: ADTypes
4949
50+ using NaNMath
51+
5052@reexport using SymbolicUtils
5153RuntimeGeneratedFunctions. init (@__MODULE__ )
5254
@@ -108,7 +110,7 @@ include("variable.jl")
108110function slog end ; function ssqrt end ; function scbrt end
109111include (" linearity.jl" )
110112
111- using DiffRules, SpecialFunctions, NaNMath
113+ using DiffRules, SpecialFunctions
112114
113115using SparseArrays
114116
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ SymbolicUtils.@number_methods(
2525 Num (f (value (a), value (b))),
2626 [conj, real, transpose]
2727 )
28+
29+ NaNMath. pow (x:: Num , y:: Integer ) = wrap (NaNMath. pow (unwrap (x), y))
2830Base. conj (x:: Num ) = x
2931Base. transpose (x:: Num ) = x
3032
You can’t perform that action at this time.
0 commit comments