can't you avoid a copy of shape passing an rvalue? ( {{j}} )