Output matrix in last (t-1) generation: normal; Indexing the same matrix in this generation: NaNs in the (t-1) column

I think there is a lot of context missing here, please post a self-contained MWE.

1 Like