Replies: 1 comment
-
I am a dummy, I have made my tests without the above specialization and it turns out that the specialization of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In order to allow for accouting for uniform arrays (arrays whose entries all have the same values as provided by
StructuredArrays
) inmapreduce
, I have specialized the_map_getindex
method as follows:Using uniform arrays is a mean to spare allocating large arrays whose entries are all the same in contexts where broadcasting rules cannot be applied.
Although this hack seems to work, I am not confortable at specializing such a private function. Is there a better way to achieve this?
edit: Sorry, I forget to indicate that
value(A)
returns the value of any entry of a uniform arrayA
.Beta Was this translation helpful? Give feedback.
All reactions