#include "list_to_matrix.h" #include #include #include #include "max_size.h" #include "min_size.h" #define VERBOSE #include "verbose.h" template IGL_INLINE bool igl::list_to_matrix(const std::vector > & V,Mat & M) { // number of rows int m = V.size(); if(m == 0) { fprintf(stderr,"Error: list_to_matrix() list is empty()\n"); return false; } // number of columns int n = igl::min_size(V); if(n != igl::max_size(V)) { fprintf(stderr,"Error: list_to_matrix()" " list elements are not all the same size\n"); return false; } assert(n != -1); // Resize output M.resize(m,n); // Loop over rows for(int i = 0;i IGL_INLINE bool igl::list_to_matrix(const std::vector & V,Mat & M) { // number of rows int m = V.size(); if(m == 0) { fprintf(stderr,"Error: list_to_matrix() list is empty()\n"); return false; } // Resize output M.resize(m,1); // Loop over rows for(int i = 0;i >(std::vector > const&, Eigen::Matrix&); // generated by autoexplicit.sh template bool igl::list_to_matrix > >(std::vector >, std::allocator > > > const&, Eigen::PlainObjectBase >&); // generated by autoexplicit.sh template bool igl::list_to_matrix > >(std::vector >, std::allocator > > > const&, Eigen::PlainObjectBase >&); // generated by autoexplicit.sh template bool igl::list_to_matrix > >(std::vector >, std::allocator > > > const&, Eigen::PlainObjectBase >&); // generated by autoexplicit.sh template bool igl::list_to_matrix >(std::vector >, std::allocator > > > const&, Eigen::Matrix&); // generated by autoexplicit.sh template bool igl::list_to_matrix >(std::vector >, std::allocator > > > const&, Eigen::Matrix&); // generated by autoexplicit.sh template bool igl::list_to_matrix >(std::vector >, std::allocator > > > const&, Eigen::Matrix&); template bool igl::list_to_matrix > >(std::vector > const&, Eigen::PlainObjectBase >&); template bool igl::list_to_matrix > >(std::vector >, std::allocator > > > const&, Eigen::PlainObjectBase >&); template bool igl::list_to_matrix > >(std::vector > const&, Eigen::PlainObjectBase >&); template bool igl::list_to_matrix >(std::vector >, std::allocator > > > const&, Eigen::Matrix&); template bool igl::list_to_matrix >(std::vector > const&, Eigen::Matrix&); template bool igl::list_to_matrix > >(std::vector >, std::allocator > > > const&, Eigen::PlainObjectBase >&); template bool igl::list_to_matrix > >(std::vector >, std::allocator > > > const&, Eigen::PlainObjectBase >&); template bool igl::list_to_matrix > >(std::vector >, std::allocator > > > const&, Eigen::PlainObjectBase >&); #endif