@@ -11,6 +11,7 @@ Mooncake.@from_rrule Mooncake.DefaultCtx Tuple{Any, typeof(MacroModelling.mul_re
1111Mooncake. @from_rrule Mooncake. DefaultCtx Tuple{Any, MacroModelling. higher_order_caches{S,F}, typeof (MacroModelling. sparse_preallocated!), Matrix{S}} where {S <: Real , F <: AbstractFloat } true
1212
1313Mooncake. @from_rrule Mooncake. DefaultCtx Tuple{Any, AbstractFloat, typeof (MacroModelling. calculate_second_order_stochastic_steady_state), Val{:newton }, Matrix{Float64}, SparseArrays. AbstractSparseMatrix{Float64}, Vector{Float64}, MacroModelling. ℳ} true
14+
1415Mooncake. @from_rrule Mooncake. DefaultCtx Tuple{Any, AbstractFloat, typeof (MacroModelling. calculate_third_order_stochastic_steady_state), Val{:newton }, Matrix{Float64}, SparseArrays. AbstractSparseMatrix{Float64}, SparseArrays. AbstractSparseMatrix{Float64}, Vector{Float64}, MacroModelling. ℳ} true
1516
1617Mooncake. @from_rrule Mooncake. DefaultCtx Tuple{Any, MacroModelling. CalculationOptions, typeof (MacroModelling. get_NSSS_and_parameters), MacroModelling. ℳ, Vector{S}} where S <: AbstractFloat true
@@ -25,20 +26,27 @@ Mooncake.@from_rrule Mooncake.DefaultCtx Tuple{Any, MacroModelling.timings, Macr
2526
2627Mooncake. @from_rrule Mooncake. DefaultCtx Tuple{Any, MacroModelling. timings, AbstractMatrix{R}, MacroModelling. CalculationOptions, typeof (MacroModelling. calculate_second_order_solution), AbstractMatrix{R}, SparseArrays. SparseMatrixCSC{R}, AbstractMatrix{R}, MacroModelling. second_order_auxiliary_matrices, MacroModelling. caches} where R <: AbstractFloat true
2728
28- Mooncake. @from_rrule Mooncake. DefaultCtx Tuple{Any, MacroModelling. timings, AbstractMatrix{R}, MacroModelling. CalculationOptions, typeof (MacroModelling. calculate_second_order_solution), AbstractMatrix{R}, SparseArrays. SparseMatrixCSC{R}, SparseArrays. SparseMatrixCSC{R}, AbstractMatrix{R}, SparseArrays. SparseMatrixCSC{R}, MacroModelling. second_order_auxiliary_matrices, MacroModelling. third_order_auxiliary_matrices, MacroModelling. caches} where R <: AbstractFloat true
29-
30-
29+ Mooncake. @from_rrule Mooncake. DefaultCtx Tuple{Any, MacroModelling. timings, AbstractMatrix{R}, MacroModelling. CalculationOptions, typeof (MacroModelling. calculate_third_order_solution), AbstractMatrix{R}, SparseArrays. SparseMatrixCSC{R}, SparseArrays. SparseMatrixCSC{R}, AbstractMatrix{R}, SparseArrays. SparseMatrixCSC{R}, MacroModelling. second_order_auxiliary_matrices, MacroModelling. third_order_auxiliary_matrices, MacroModelling. caches} where R <: AbstractFloat true
3130
3231Mooncake. @from_rrule Mooncake. DefaultCtx Tuple{Any, Int, Float64, typeof (MacroModelling. find_shocks), Val{:LagrangeNewton }, Vector{Float64}, Vector{Float64}, AbstractMatrix{Float64}, ℒ. Diagonal{Bool, Vector{Bool}}, AbstractMatrix{Float64}, AbstractMatrix{Float64}, Vector{Float64}} true
3332
3433Mooncake. @from_rrule Mooncake. DefaultCtx Tuple{Any, Int, Float64, typeof (MacroModelling. find_shocks), Val{:LagrangeNewton }, Vector{Float64}, Vector{Float64}, Vector{Float64}, AbstractMatrix{Float64}, AbstractMatrix{Float64}, AbstractMatrix{Float64}, ℒ. Diagonal{Bool, Vector{Bool}}, AbstractMatrix{Float64}, AbstractMatrix{Float64}, AbstractMatrix{Float64}, Vector{Float64}} true
3534
3635Mooncake. @from_rrule Mooncake. DefaultCtx Tuple{Any, Int, Int, MacroModelling. CalculationOptions, Symbol, typeof (MacroModelling. calculate_inversion_filter_loglikelihood), Val{:first_order }, Vector{Vector{Float64}}, Matrix{Float64}, Matrix{Float64}, Union{Vector{String}, Vector{Symbol}}, MacroModelling. timings} true
36+
3737Mooncake. @from_rrule Mooncake. DefaultCtx Tuple{Any, Int, Int, MacroModelling. CalculationOptions, Symbol, typeof (MacroModelling. calculate_inversion_filter_loglikelihood), Val{:pruned_second_order }, Vector{Vector{Float64}}, Vector{AbstractMatrix{Float64}}, Matrix{Float64}, Union{Vector{String}, Vector{Symbol}}, MacroModelling. timings} true
38+
3839Mooncake. @from_rrule Mooncake. DefaultCtx Tuple{Any, Int, Int, MacroModelling. CalculationOptions, Symbol, typeof (MacroModelling. calculate_inversion_filter_loglikelihood), Val{:second_order }, Vector{Float64}, Vector{AbstractMatrix{Float64}}, Matrix{Float64}, Union{Vector{String}, Vector{Symbol}}, MacroModelling. timings} true
40+
3941Mooncake. @from_rrule Mooncake. DefaultCtx Tuple{Any, Int, Int, MacroModelling. CalculationOptions, Symbol, typeof (MacroModelling. calculate_inversion_filter_loglikelihood), Val{:pruned_third_order }, Vector{Vector{Float64}}, Vector{AbstractMatrix{Float64}}, Matrix{Float64}, Union{Vector{String}, Vector{Symbol}}, MacroModelling. timings} true
42+
4043Mooncake. @from_rrule Mooncake. DefaultCtx Tuple{Any, Int, Int, MacroModelling. CalculationOptions, Symbol, typeof (MacroModelling. calculate_inversion_filter_loglikelihood), Val{:third_order }, Vector{Float64}, Vector{AbstractMatrix{Float64}}, Matrix{Float64}, Union{Vector{String}, Vector{Symbol}}, MacroModelling. timings} true
4144
45+ Mooncake. @from_rrule Mooncake. DefaultCtx Tuple{Any, Symbol, AbstractFloat, AbstractFloat, Bool, typeof (MacroModelling. solve_lyapunov_equation), AbstractMatrix{R}, AbstractMatrix{R}} where R <: AbstractFloat true
46+
47+ Mooncake. @from_rrule Mooncake. DefaultCtx Tuple{Any, AbstractMatrix{<: AbstractFloat }, Symbol, AbstractFloat, AbstractFloat, MacroModelling. sylvester_caches, Bool,
48+ :: typeof (MacroModelling. solve_sylvester_equation), AbstractMatrix{R}, AbstractMatrix{R}, AbstractMatrix{R}} where R <: AbstractFloat true
49+
4250
4351function ChainRulesCore. rrule (func_ir:: Any ,
4452 ℂ:: MacroModelling.higher_order_caches{T,F} ,
@@ -140,7 +148,7 @@ function ChainRulesCore.rrule(func_ir::Any,
140148 T:: MacroModelling.timings ,
141149 initial_guess:: AbstractMatrix{R} ,
142150 opts:: MacroModelling.CalculationOptions ,
143- :: typeof (MacroModelling. calculate_second_order_solution ),
151+ :: typeof (MacroModelling. calculate_third_order_solution ),
144152 ∇₁:: AbstractMatrix{R} ,
145153 ∇₂:: SparseArrays.SparseMatrixCSC{R} ,
146154 ∇₃:: SparseArrays.SparseMatrixCSC{R} ,
@@ -149,7 +157,7 @@ function ChainRulesCore.rrule(func_ir::Any,
149157 M₂:: MacroModelling.second_order_auxiliary_matrices ,
150158 M₃:: MacroModelling.third_order_auxiliary_matrices ,
151159 ℂC:: MacroModelling.caches ) where {R<: AbstractFloat }
152- ChainRulesCore. rrule (MacroModelling. calculate_second_order_solution ,
160+ ChainRulesCore. rrule (MacroModelling. calculate_third_order_solution ,
153161 ∇₁, ∇₂, ∇₃, 𝑺₁, 𝐒₂, M₂, M₃, ℂC;
154162 T= T, initial_guess= initial_guess, opts= opts)
155163end
0 commit comments