Skip to content

Commit

Permalink
faster cond fcst solve
Browse files Browse the repository at this point in the history
  • Loading branch information
thorek1 committed Dec 22, 2023
1 parent a9f676d commit bb373b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MacroModelling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ function match_conditions(res::Vector{S}, X::Vector{S}, jac::Matrix{S}, p) where

cond_vars = Pruning ? sum(new_State) : new_State

return abs2.(Conditions[Cond_var_idx] - cond_vars[Cond_var_idx])
return abs.(Conditions[Cond_var_idx] - cond_vars[Cond_var_idx])
end, X)[1]'
end

Expand All @@ -326,7 +326,7 @@ function match_conditions(res::Vector{S}, X::Vector{S}, jac::Matrix{S}, p) where

cond_vars = Pruning ? sum(new_State) : new_State

res .= abs2.(Conditions[Cond_var_idx] - cond_vars[Cond_var_idx])
res .= abs.(Conditions[Cond_var_idx] - cond_vars[Cond_var_idx])
end


Expand Down

0 comments on commit bb373b5

Please sign in to comment.