Cumsum performs a sample-by-sample accumulation. For example, for input 4, 5, 6, 7, the output would be 4, 9, 15, 22. The parameter TP_MODE selects the mode of operation. The following modes are supported: