At line 42 of ValueFnIter_FHorz_TPath_SingleStep_fastOLG_ExpAsset_e_raw we see:
EVpre=[sum(V(N_a+1:end,:).*replem(reshape(pi_e_J,[N_j,1,N_e]),N_a-1,1,1),3); zeros(N_a,N_z,'gpuArray')]; % I use zeros in j=N_j so that can just use pi_z_J to create expectations
This is wrong because pi_e_J is shaped as [N_a*N_j,1,N_e] when transpathoptions.fastOLG=1 & z (a-j,1,e).
This is needed to get transpathoptions.fastOLG=1 working. I have transpathoptions.fastOLG=0 working (after disabling an error message).
At line 42 of
ValueFnIter_FHorz_TPath_SingleStep_fastOLG_ExpAsset_e_rawwe see:This is wrong because pi_e_J is shaped as
[N_a*N_j,1,N_e]when transpathoptions.fastOLG=1 & z (a-j,1,e).This is needed to get transpathoptions.fastOLG=1 working. I have transpathoptions.fastOLG=0 working (after disabling an error message).