Distinguish allocating and non-allocating elementwise multiplication