array icon indicating copy to clipboard operation
array copied to clipboard

Remove copies from Einstein expression construction

Open dsharlet opened this issue 5 years ago • 1 comments

Currently, it is not possible to construct an Einstein reduction expression without copying the operands. Most of these copies are small/lightweight (never arrays, only array_refs), but operands that are functions/lambdas may be expensive to copy or not copyable at all.

dsharlet avatar Aug 02 '20 04:08 dsharlet

The fix for this breaks some optimizations related to ein_reduce usage.

dsharlet avatar Aug 26 '20 02:08 dsharlet