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