Defining Vectorizable Helper Function given Posterior Draws (Forecasting with BVAR)

thank you all so much for your help!