Estimation DLL: added testInitKalman to the build system, and modify it to accept the dynamic DLL as argument
parent
d93a5af70b
commit
b1e90e59af
|
@ -130,6 +130,10 @@ ylwrap
|
|||
# Estimation DLL tests
|
||||
/mex/sources/estimation/tests/test-dr
|
||||
/mex/sources/estimation/tests/test-dr.exe
|
||||
/mex/sources/estimation/tests/testModelSolution
|
||||
/mex/sources/estimation/tests/testModelSolution.exe
|
||||
/mex/sources/estimation/tests/testInitKalman
|
||||
/mex/sources/estimation/tests/testInitKalman.exe
|
||||
/mex/sources/estimation/libmat/tests/test-qr
|
||||
/mex/sources/estimation/libmat/tests/test-qr.exe
|
||||
/mex/sources/estimation/libmat/tests/test-gsd
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
check_PROGRAMS = test-dr testModelSolution
|
||||
check_PROGRAMS = test-dr testModelSolution testInitKalman
|
||||
|
||||
test_dr_SOURCES = ../libmat/Matrix.cc ../libmat/Vector.cc ../libmat/QRDecomposition.cc ../libmat/GeneralizedSchurDecomposition.cc ../libmat/LUSolver.cc ../DecisionRules.cc test-dr.cc
|
||||
test_dr_LDADD = $(LAPACK_LIBS) $(BLAS_LIBS) $(LIBS) $(FLIBS)
|
||||
|
@ -6,7 +6,11 @@ test_dr_CPPFLAGS = -I.. -I../libmat -I../../
|
|||
|
||||
testModelSolution_SOURCES = ../libmat/Matrix.cc ../libmat/Vector.cc ../libmat/QRDecomposition.cc ../libmat/GeneralizedSchurDecomposition.cc ../libmat/LUSolver.cc ../utils/dynamic_dll.cc ../DecisionRules.cc ../ModelSolution.cc testModelSolution.cc
|
||||
testModelSolution_LDADD = $(LAPACK_LIBS) $(BLAS_LIBS) $(LIBS) $(FLIBS) $(LIBADD_DLOPEN)
|
||||
testModelSolution_CPPFLAGS = -I.. -I../libmat -I../../ -I../utils -DMEXEXT=\"$(MEXEXT)\"
|
||||
testModelSolution_CPPFLAGS = -I.. -I../libmat -I../../ -I../utils
|
||||
|
||||
testInitKalman_SOURCES = ../libmat/Matrix.cc ../libmat/Vector.cc ../libmat/QRDecomposition.cc ../libmat/GeneralizedSchurDecomposition.cc ../libmat/LUSolver.cc ../utils/dynamic_dll.cc ../DecisionRules.cc ../ModelSolution.cc ../InitializeKalmanFilter.cc ../DetrendData.cc testInitKalman.cc
|
||||
testInitKalman_LDADD = $(LAPACK_LIBS) $(BLAS_LIBS) $(LIBS) $(FLIBS) $(LIBADD_DLOPEN)
|
||||
testInitKalman_CPPFLAGS = -I.. -I../libmat -I../../ -I../utils
|
||||
|
||||
check-local:
|
||||
./test-dr
|
||||
|
|
|
@ -25,9 +25,13 @@
|
|||
int
|
||||
main(int argc, char **argv)
|
||||
{
|
||||
if (argc < 2)
|
||||
{
|
||||
std::cerr << argv[0] << ": please provide as argument the name of the dynamic DLL generated from fs2000k2.mod (typically fs2000k2_dynamic.mex*)" << std::endl;
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
std::string
|
||||
modName("fs2000k2_dynamic.mexw32");
|
||||
std::string modName = argv[1];
|
||||
const int npar = 7; //(int)mxGetM(mxFldp);
|
||||
const size_t n_endo = 15, n_exo = 2;
|
||||
std::vector<size_t> zeta_fwrd_arg;
|
||||
|
|
Loading…
Reference in New Issue