Interesting solution!
I think it would be more readable if you replace coords by c and values by z.
And replace the i in the brackets by j to avoid confusion for the reader.
Interesting solution!
I think it would be more readable if you replace coords by c and values by z.
And replace the i in the brackets by j to avoid confusion for the reader.