mad(v): only make one array copy and use it as scratch space.