def makeEndOfPrdvFuncCond(self):
        '''
        Construct the end-of-period value function conditional on next period's
        state.  NOTE: It might be possible to eliminate this method and replace
        it with ConsIndShockSolver.makeEndOfPrdvFunc, but the self.X_cond
        variables must be renamed.

        Parameters
        ----------
        none

        Returns
        -------
        EndofPrdvFunc_cond : ValueFunc
            The end-of-period value function conditional on a particular state
            occuring in the next period.
        '''
        VLvlNext               = (self.PermShkVals_temp**(1.0-self.CRRA)*
                                  self.PermGroFac**(1.0-self.CRRA))*self.vFuncNext(self.mNrmNext)
        EndOfPrdv_cond         = self.DiscFacEff*np.sum(VLvlNext*self.ShkPrbs_temp,axis=0)
        EndOfPrdvNvrs_cond     = self.uinv(EndOfPrdv_cond)
        EndOfPrdvNvrsP_cond    = self.EndOfPrdvP_cond*self.uinvP(EndOfPrdv_cond)
        EndOfPrdvNvrs_cond     = np.insert(EndOfPrdvNvrs_cond,0,0.0)
        EndOfPrdvNvrsP_cond    = np.insert(EndOfPrdvNvrsP_cond,0,EndOfPrdvNvrsP_cond[0])
        aNrm_temp              = np.insert(self.aNrm_cond,0,self.BoroCnstNat)
        EndOfPrdvNvrsFunc_cond = CubicInterp(aNrm_temp,EndOfPrdvNvrs_cond,EndOfPrdvNvrsP_cond)
        EndofPrdvFunc_cond     = ValueFunc(EndOfPrdvNvrsFunc_cond,self.CRRA)
        return EndofPrdvFunc_cond
def makeEndOfPrdvFuncCond ( self ) : VLvlNext = ( self . PermShkVals_temp ** ( 1.0 - self . CRRA ) * self . PermGroFac ** ( 1.0 - self . CRRA ) ) * self . vFuncNext ( self . mNrmNext ) EndOfPrdv_cond = self . DiscFacEff * np . sum ( VLvlNext * self . ShkPrbs_temp , axis = 0 ) EndOfPrdvNvrs_cond = self . uinv ( EndOfPrdv_cond ) EndOfPrdvNvrsP_cond = self . EndOfPrdvP_cond * self . uinvP ( EndOfPrdv_cond ) EndOfPrdvNvrs_cond = np . insert ( EndOfPrdvNvrs_cond , 0 , 0.0 ) EndOfPrdvNvrsP_cond = np . insert ( EndOfPrdvNvrsP_cond , 0 , EndOfPrdvNvrsP_cond [ 0 ] ) aNrm_temp = np . insert ( self . aNrm_cond , 0 , self . BoroCnstNat ) EndOfPrdvNvrsFunc_cond = CubicInterp ( aNrm_temp , EndOfPrdvNvrs_cond , EndOfPrdvNvrsP_cond ) EndofPrdvFunc_cond = ValueFunc ( EndOfPrdvNvrsFunc_cond , self . CRRA ) return EndofPrdvFunc_cond
Construct the end-of-period value function conditional on next period's
        state.  NOTE: It might be possible to eliminate this method and replace
        it with ConsIndShockSolver.makeEndOfPrdvFunc, but the self.X_cond
        variables must be renamed.

        Parameters
        ----------
        none

        Returns
        -------
        EndofPrdvFunc_cond : ValueFunc
            The end-of-period value function conditional on a particular state
            occuring in the next period.