The same system can be run as a recurrence, one step at a time, which is how S4 generates at inference. Both forms give identical outputs, so the convolution used in training is exact.
Implement recurrent_ssm(A_bar, B_bar, C, x), the step-by-step recurrence with output readout.
Keep a state, update it with the input each step, then output C times the state.
No results yet
Run your code to check it against the examples, or submit to run every test.