Page 1 of 1

Octave warning in example1.mod

PostPosted: Tue Feb 10, 2015 4:18 pm
by rolf
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


Re: Octave warning in example1.mod

PostPosted: Wed Feb 11, 2015 12:25 pm
by jpfeifer
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.

Re: Octave warning in example1.mod

PostPosted: Wed Feb 11, 2015 2:38 pm
by rolf
Thanks!