Skip to content

Error in reshape ValueFnIter_FHorz_TPath_SingleStep_fastOLG_ExpAsset_e_raw #95

@MichaelTiemann

Description

@MichaelTiemann

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions