#include "normalize_row_lengths.h" template IGL_INLINE void igl::normalize_row_lengths( const Eigen::PlainObjectBase& A, Eigen::PlainObjectBase & B) { // Resize output B.resize(A.rows(),A.cols()); // loop over rows for(int i = 0; i < A.rows();i++) { B.row(i) = A.row(i).normalized(); } //// Or just: //B = A; //B.rowwise().normalize(); } #ifndef IGL_HEADER_ONLY // Explicit template specialization // generated by autoexplicit.sh template void igl::normalize_row_lengths >(Eigen::PlainObjectBase > const&, Eigen::PlainObjectBase >&); template void igl::normalize_row_lengths >(Eigen::PlainObjectBase > const&, Eigen::PlainObjectBase >&); template void igl::normalize_row_lengths >(Eigen::PlainObjectBase > const&, Eigen::PlainObjectBase >&); #endif