I don't think we need a copy which flat[:] does AFAICS. use `y.ravel()`