replacing armadillo by eigen