CIGAL Reference Manual, Chapter 6 (RealTime): r_sum
usage: r_sum opflg eflag ltime src dst [nvals flg]
R_SUM is a REALTIME operator.
Sum NVALS values in SRC and store the result in DST.
If NVALS is missing, all values in SRC will be summed.
[currently]
If FLG > 0, sum values prior to the current SRC pointer location.
If FLG & 2, don't include the current SRC pointer location.
[should be]
If FLG & 1, sum values prior to the current SRC pointer location.
If FLG & 2, don't include the current SRC pointer location.
See Also: