chickadee » nanograd » compensated-sum

compensated-sum dtype vec start endprocedure

Sums the elements start to end - 1 of the SRFI-4 vector vec with Kahan compensated summation, which reduces rounding error.