Pre-allocate matched_keypoint_pairs and set `matched_keypoint_pairs[:, 0, :] = keypoints1[row_check]`.