exporting an Eigen matrix.
convert RowVector into Matrix