switching cove::math usage to Eigen