Browse Source

template stuff

Teseo Schneider 6 years ago
parent
commit
473c579420
2 changed files with 2 additions and 2 deletions
  1. 1 1
      include/igl/vertex_components.cpp
  2. 1 1
      include/igl/vertex_components.h

+ 1 - 1
include/igl/vertex_components.cpp

@@ -69,7 +69,7 @@ IGL_INLINE void igl::vertex_components(
 
 template <typename SparseT, typename DerivedC>
 IGL_INLINE void igl::vertex_components(
-  const SparseT & A,
+  const Eigen::SparseCompressedBase<SparseT> & A,
   Eigen::PlainObjectBase<DerivedC> & C)
 {
   Eigen::VectorXi counts;

+ 1 - 1
include/igl/vertex_components.h

@@ -31,7 +31,7 @@ namespace igl
 
   template <typename SparseT, typename DerivedC>
   IGL_INLINE void vertex_components(
-    const SparseT & A,
+    const Eigen::SparseCompressedBase<SparseT> & A,
     Eigen::PlainObjectBase<DerivedC> & C);
 
   // Compute the connected components for a mesh given its faces.