Octave warning in example1.mod

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Octave warning in example1.mod

Postby rolf » Tue Feb 10, 2015 4:18 pm

I am using a fresh install of Dynare 4.4.3 with Octave version 3.8.1 (on Win7)

With the standard test file example1.mod, Octave issues the warning: "implicit conversion from real matrix to real scalar". Is this an Octave bug? I tried the option order=1 in stoch_simul and the code runs smoothly.

These are the first lines in the log:

Code: Select all
>> dynare example1

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).
[mex] Markov Switching SBVAR.

Starting Dynare (version 4.4.3).
Starting preprocessing of the model file ...
Found 6 equation(s).
Evaluating expressions...done
Computing static model derivatives:
 - order 1
Computing dynamic model derivatives:
 - order 1
 - order 2
Processing outputs ...done
Preprocessing completed.
Starting MATLAB/Octave computing.
warning: implicit conversion from real matrix to real scalar
warning: called from
    dyn_second_order_solver at line 121 column 14
    stochastic_solvers at line 225 column 12
    resol at line 137 column 14
    stoch_simul at line 88 column 34
    example1 at line 154 column 6
    dynare at line 180 column 1

rolf
 
Posts: 3
Joined: Thu Jul 30, 2009 8:56 am

Re: Octave warning in example1.mod

Postby jpfeifer » Wed Feb 11, 2015 12:25 pm

I think you can safely ignore the warning. Octave in contrast to Matlab distinguishes scalars from arrays. What happens is that err was a matrix and now is set to a scalar. Octave warns about this change in dimensions.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Octave warning in example1.mod

Postby rolf » Wed Feb 11, 2015 2:38 pm

Thanks!
rolf
 
Posts: 3
Joined: Thu Jul 30, 2009 8:56 am


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 7 guests