code: def calcEndOfPrdvPP(self):
          '''
          Calculates end-of-period marginal marginal value using a pre-defined
          array of next period market resources in self.mNrmNext.
  
          Parameters
          ----------
          none
  
          Returns
          -------
          EndOfPrdvPP : np.array
              End-of-period marginal marginal value of assets at each value in
              the grid of assets.
          '''
          EndOfPrdvPP = self.DiscFacEff*self.Rfree*self.Rfree*self.PermGroFac**(-self.CRRA-1.0)*\
                        np.sum(self.PermShkVals_temp**(-self.CRRA-1.0)*self.vPPfuncNext(self.mNrmNext)
                        *self.ShkPrbs_temp,axis=0)
          return EndOfPrdvPf calcEndOfPrdvPP(self):
          '''
          Calculates end-of-period marginal marginal value using a pre-defined
          array of next period market resources in self.mNrmNext.
  
          Parameters
          ----------
          none
  
          Returns
          -------
          EndOfPrdvPP : np.array
              End-of-period marginal marginal value of assets at each value in
              the grid of assets.
          '''
          EndOfPrdvPP = self.DiscFacEff*self.Rfree*self.Rfree*self.PermGroFac**(-self.CRRA-1.0)*\
                        np.sum(self.PermShkVals_temp**(-self.CRRA-1.0)*self.vPPfuncNext(self.mNrmNext)
                        *self.ShkPrbs_temp,axis=0)
          return EndOfPrdvPP
docs: Calculates end-of-period marginal marginal value using a pre-defined
          array of next period market resources in self.mNrmNext.
  
          Parameters
          ----------
          none
  
          Returns
          -------
          EndOfPrdvPP : np.array
              End-of-period marginal marginal value of assets at each value in
              the grid of assets.