Closed arishov1 closed 8 months ago
Thank you for your feedback. After the loop, quantized = q0 + q1 + ... + qn
in your code, quantized = input - r = input - (input - q0 - q1 - ... - qn) = q0 + q1 + ... + qn
in the original. I think the results are the same except buffer needed to keep the temporary data.
Thanks for sharing your code. From my understanding, to implement the algorithm described in this paper, it appears necessary to modify your code as follows: