Closed ijustink closed 2 years ago
The code in the example folder requires Julia 1.7. Which version do you have?
On Mon, Jan 31, 2022 at 1:05 PM ijustink @.***> wrote:
Hello:
I'm very new to Julia and I'm not sure if this is my problem or the code has issue because of the Julia version change or etc.
All of you codes in example folder shows following error.
ERROR: LoadError: syntax: invalid assignment location "; c, r, ρ, σ, a, T"
I removed ';' sign in the function code like this
function (m::ArbitrageHoldingCosts)(state::NamedTuple, y::NamedTuple, τ::Number) (c, r, ρ, σ, a, T) = m (z) = state (F, Fz_up, Fz_down, Fzz) = y
but then Julia shows:
ERROR: LoadError: MethodError: no method matching iterate
I really want to learn from your code. Could you please help me out with this issue?
— Reply to this email directly, view it on GitHub https://github.com/matthieugomez/EconPDEs.jl/issues/29, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABPPPXPRAAFMGN5N54RUL4LUY3FOFANCNFSM5NG65XHQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you are subscribed to this thread.Message ID: @.***>
Just installed Julia 1.7.1 version and it works flawlessly. (Previously, I used Julia 1.6.3)
Thank you so much for the quick response and for sharing the code.
As a Finance PhD student, your code is the most useful resource to learn Julia and theory papers.
Hello:
I'm very new to Julia and I'm not sure if this is my problem or the code has issue because of the Julia version change or etc.
All of you codes in example folder shows following error.
ERROR: LoadError: syntax: invalid assignment location "; c, r, ρ, σ, a, T"
I removed ';' sign in the function code like this
function (m::ArbitrageHoldingCosts)(state::NamedTuple, y::NamedTuple, τ::Number) (c, r, ρ, σ, a, T) = m (z) = state (F, Fz_up, Fz_down, Fzz) = y
but then Julia shows:
ERROR: LoadError: MethodError: no method matching iterate
I really want to learn from your code. Could you please help me out with this issue?