#64: Fix USE_DLL option at order 2 --------------------------+------------------------------------------------- Reporter: sebastien | Owner: Type: bug | Status: new Priority: minor | Milestone: 4.1 Component: Core M-files | Version: Keywords: | --------------------------+------------------------------------------------- Currently the MEX returns a hessian made of 3 columns (sparse representation: two columns for indices, one column for values).
A call to sparse() function needs to be added in dr1.m when USE_DLL option is used. Maybe a field options_.use_dll should be added by the preprocessor to facilitate the test in dr1.m.
Hi Sebastien
I guess, an all Matlab (quick-fix) solution can be made with a test for the presence of <modname>_dynamic.[mexext] file instead for the options_.use_dll option, though, the latter is quicker and more elegant solution.
PS: If the mex file presence test is acceptable (at least as a quick fix) I can take on this one on the Matlab dr.m side if you would like me to (but I would prefer if you are making changes to the preprocessor if that is required).
Best regards
George
----- Original Message ----- From: "Trac Dynare" root@dynare.org Cc: dev@dynare.org Sent: Friday, December 11, 2009 9:02 AM Subject: [DynareDev] [Trac] #64: Fix USE_DLL option at order 2
#64: Fix USE_DLL option at order 2 --------------------------+-----------------------------------------------
--
Reporter: sebastien | Owner: Type: bug | Status: new Priority: minor | Milestone: 4.1 Component: Core M-files | Version: Keywords: | --------------------------+-----------------------------------------------
--
Currently the MEX returns a hessian made of 3 columns (sparse representation: two columns for indices, one column for values).
A call to sparse() function needs to be added in dr1.m when USE_DLL
option
is used. Maybe a field options_.use_dll should be added by the preprocessor to facilitate the test in dr1.m.
-- Ticket URL: https://www.dynare.org/trac/ticket/64 Dynare http://www.dynare.org The Dynare project _______________________________________________ Dev mailing list Dev@dynare.org http://www.dynare.org/cgi-bin/mailman/listinfo/dev
Le vendredi 11 décembre 2009 à 09:47 +0000, G. Perendia a écrit :
I guess, an all Matlab (quick-fix) solution can be made with a test for the presence of <modname>_dynamic.[mexext] file instead for the options_.use_dll option, though, the latter is quicker and more elegant solution.
PS: If the mex file presence test is acceptable (at least as a quick fix) I can take on this one on the Matlab dr.m side if you would like me to (but I would prefer if you are making changes to the preprocessor if that is required).
I don't like the idea of testing the MEX. And adding options_.use_dll in the preprocessor is quite easy, so I will do that.
Thanks for your proposal
#64: Fix USE_DLL option at order 2 ---------------------------+------------------------------------------------ Reporter: sebastien | Owner: Type: bug | Status: closed Priority: minor | Milestone: 4.1 Component: Core M-files | Version: Resolution: fixed | Keywords: ---------------------------+------------------------------------------------ Changes (by sebastien):
* status: new => closed * resolution: => fixed
Comment:
Fixed in r3236.