Commit c40b8537 authored by assia's avatar assia
Browse files

isolated function deleted

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1655 ac1d8469-bf42-47a9-8791-bf33cf982152
parent b2beb89b
% Copyright (C) 2001 Michel Juillard
%
function d1 = bksupk(ny,fid,jcf,icc1)
global M_ options_ c ncc
icf = [1:jcf-1] ;
ir = [(options_.periods-1)*ny+1:ny*options_.periods] ;
irf = icc1+(options_.periods-1)*ny ;
d1 = zeros(options_.periods*ny,1) ;
ofs = (((options_.periods-1)*ny+1)-1)*ncc*8 ;
junk = fseek(fid,ofs,-1) ;
c = fread(fid,[ncc,ny],'float64') ;
c = c' ;
d1(ir) = c(:,jcf) ;
ir = ir-ny ;
i = 2 ;
while i <= M_.maximum_lead | i <= options_.periods
irf1 = selif(irf,irf<options_.periods*ny) ;
ofs = (((options_.periods-i)*ny+1)-1)*ncc*8 ;
junk = fseek(fid,ofs,-1) ;
c = fread(fid,[ncc,ny],'float64') ;
c = c' ;
d1(ir) = c(:,jcf) - c(:,1:size(irf1,1))*d1(irf1) ;
ir = ir - ny ;
irf = irf - ny ;
i = i + 1 ;
end
while i <= options_.periods
ofs = (((options_.periods-i)*ny+1)-1)*ncc*8 ;
junk = fseek(fid,ofs,-1) ;
c = fread(fid,[ncc,ny],'float64') ;
c = c' ;
d1(ir) = c(:,jcf)-c(:,icf)*d1(irf) ;
ir = ir-ny ;
irf = irf-ny ;
i = i+1;
end
return ;
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