#include "round.h" #include // http://stackoverflow.com/a/485549 template IGL_INLINE DerivedX igl::round(const DerivedX r) { return (r > 0.0) ? floor(r + 0.5) : ceil(r - 0.5); } template < typename DerivedX, typename DerivedY> IGL_INLINE void igl::round( const Eigen::PlainObjectBase& X, Eigen::PlainObjectBase& Y) { Y.resize(X.rows(),X.cols()); // loop over rows for(int i = 0;i, Eigen::Matrix >(Eigen::PlainObjectBase > const&, Eigen::PlainObjectBase >&); template void igl::round, Eigen::Matrix >(Eigen::PlainObjectBase > const&, Eigen::PlainObjectBase >&); #endif