Hi Mikael, > There is little that is specific to conjg (any elemental function would > work roughly the same), but anyway, the patch is OK.
Conjg has the advantage that it is an extremely cheap function - essentially zero cost. For an arbitrary elemental function, we would have to think about creating temporaries to make sure we only get n^2 and not n^3 evaluations of whatever function we use. Thanks for the review! Committed as rev. 223499. Regards Thomas