Commit 0d58e185 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Fixed compatibility issue with octave (use set_dynare_seed routine instead of the matlab's commands

to set the seed of the random number generators).
parent 59d3d30c
......@@ -82,8 +82,7 @@ state_variance_rank = size(StateVectorVarianceSquareRoot,2);
Q_lower_triangular_cholesky = chol(Q)';
% Set seed for randn().
stream=RandStream('mt19937ar','Seed',1);
RandStream.setDefaultStream(stream);
set_dynare_seed('default');
% Initialization of the likelihood.
const_lik = log(2*pi)*number_of_observed_variables;
......
......@@ -107,8 +107,7 @@ state_variance_rank = size(StateVectorVarianceSquareRoot,2);
Q_lower_triangular_cholesky = chol(Q)';
% Set seed for randn().
stream=RandStream('mt19937ar','Seed',1);
RandStream.setDefaultStream(stream);
set_dynare_seed('default');
% Initialization of the likelihood.
const_lik = log(2*pi)*number_of_observed_variables;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment