I am working with eigen library right now, and trying to find a way to extract the odd rows of a matrix into a new matrix. I am currently using
Map<MatrixXf,0,OuterStride<>>dst(eigen_src.data(), eigen_src.rows(), eigen_src.cols() / 2, OuterStride<>(eigen_src.outerStride() * 2))
to extract the even rows. But I do not think the upper way apply for odd number row as well. Or does it?
Does anyone knows how I could extract rows 1, 3, 5, ....(odd numbers) from a matrix and same them as a new matrix?
Thank you