It's because the dtype should come from v but the shape should come from ix2 (not v).