Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible bug in qzdiv() in gensys.jl #1

Closed
MattCocci opened this issue Jul 3, 2015 · 5 comments
Closed

Possible bug in qzdiv() in gensys.jl #1

MattCocci opened this issue Jul 3, 2015 · 5 comments

Comments

@MattCocci
Copy link

Noticed that line 248 of gensys.jl has the following line

    if (root[j, 2] > stake) || (root[j, 1] < -.1)

whereas the qzdiv.m Matlab function has

      if (root(j,2) > stake | root(j,2) < -.1) 

We were getting errors until we changed the index in the second part of the Julia if-statement to match the Matlab version.

@sglyon
Copy link
Owner

sglyon commented Jul 4, 2015

Thank you for letting me know.

When you made the change, did it start working properly?

If so, would you (or whoever is working with this code) submit a pull request?

Thanks!

@sglyon
Copy link
Owner

sglyon commented Jul 4, 2015

Oh and I should also mention again that the qzdiv and qzswitch functions are both temporary.

Eventually we should rely on the ordschur function that was merged into Base.LinAlg (module built in to Julia). This will not be available on 0.3.x (latest official release), but it should be fairly easy to do a temporary back port for our purposes until 0.4 is officially released.

@sglyon
Copy link
Owner

sglyon commented Aug 10, 2015

@pearlzli @MattCocci

What do you think about the following plan:

  • Push changes (bug fixes) to gensys that are sitting in DSGE.jl to this repo
  • Find a permanent and more visible home for that code under the QuantEcon umbrella
  • Have the NYFRB and others who might want this feature access the code via its new home under QuantEcon

It is not a super high priority, but I did want to initiate the conversation.

@pearlzli
Copy link
Contributor

Hi @spencerlyon2, sorry for the delay! I spoke with @micahjsmith yesterday about this, and we're definitely on board. I can fork Hobo.jl, change the call to qzdiv to ordschur, and submit a pull request. Then once you move gensys to QuantEcon, we'll be happy to use it through the QuantEcon package.

@sglyon
Copy link
Owner

sglyon commented Aug 12, 2015

That's great, thank you very much.

Looking forward to that!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants