瀏覽代碼

Fix crouzeix_raviart_massmatrix 2

KarlLeell 6 年之前
父節點
當前提交
f6ffa60ce8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      include/igl/crouzeix_raviart_massmatrix.cpp

+ 2 - 2
include/igl/crouzeix_raviart_massmatrix.cpp

@@ -19,7 +19,7 @@
 template <typename MT, typename DerivedV, typename DerivedF, typename DerivedE, typename DerivedEMAP>
 void igl::crouzeix_raviart_massmatrix(
     const Eigen::MatrixBase<DerivedV> & V,
-    const Eigen::MatrixBase<DerivedF> & F,
+    const Eigen::MatrixBase<DerivedF> & F, 
     Eigen::SparseMatrix<MT> & M,
     Eigen::PlainObjectBase<DerivedE> & E,
     Eigen::PlainObjectBase<DerivedEMAP> & EMAP)
@@ -27,7 +27,7 @@ void igl::crouzeix_raviart_massmatrix(
   // All occurrences of directed "facets"
   Eigen::Matrix<typename DerivedF::Scalar, Eigen::Dynamic, Eigen::Dynamic> allE;
   oriented_facets(F,allE);
-  Eigen::VectorXi _1;
+  Eigen::Matrix<typename DerivedF::Scalar, Eigen::Dynamic, 1> _1;
   unique_simplices(allE,E,_1,EMAP);
   return crouzeix_raviart_massmatrix(V,F,E,EMAP,M);
 }