As the matrix `out`, select the submatrix of the matrix `in`, specified by vectors `rows` and `cols`.