You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.
Summing entries into an array, as in A += B, is a common pattern in array and BLAS-like processing. Currently newly written cells simply overwrite old cells with the same coordinates. It would be ideal if a user could specify a function to run that sums together values instead of overwriting them. This function would probably be stored in the array metadata, perhaps accepting something of the form
void* (*plus)(void*, void*)
except that the function code ought to be serializable so that it could be stored with the array and applied to a particular attribute.
Without this feature, the workaround is to read the array first, determine colliding entries with those entries to be written, and then write back the updated entries. It has some performance implications.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Summing entries into an array, as in
A += B
, is a common pattern in array and BLAS-like processing. Currently newly written cells simply overwrite old cells with the same coordinates. It would be ideal if a user could specify a function to run that sums together values instead of overwriting them. This function would probably be stored in the array metadata, perhaps accepting something of the formvoid* (*plus)(void*, void*)
except that the function code ought to be serializable so that it could be stored with the array and applied to a particular attribute.
Without this feature, the workaround is to read the array first, determine colliding entries with those entries to be written, and then write back the updated entries. It has some performance implications.
The text was updated successfully, but these errors were encountered: