What does 'not working' mean? Show us the compiler error next time...
<edit: one has since been added>
It's probably because a map is ordered but an Eigen library matrix does not define a sensible ordering for saying one matrix is "less than" another matrix.