ForwardDiffChainRules.@ForwardDiff_frule
— Macro@ForwardDiff_frule signature mutating
mutating
indicates whether or not the function is mutating the input argument.
Example
To define a rule for LinearAlgebra.exp!
, which is a mutating funciton, we call the macro like this
@ForwardDiff_frule LinearAlgebra.exp!(A::AbstractMatrix{<:ForwardDiff.Dual}) true