Operational CODA function (not working on sparse arrays yet).