Selaa lähdekoodia

Merge pull request #1288 from stnoh/dev

# fix issue #1237
Jérémie Dumas 6 vuotta sitten
vanhempi
sitoutus
28f20cdc18
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      include/igl/heat_geodesics.cpp

+ 2 - 1
include/igl/heat_geodesics.cpp

@@ -84,7 +84,8 @@ IGL_INLINE bool igl::heat_geodesics_precompute(
         return false;
       }
     }
-    const Eigen::SparseMatrix<double> Aeq = M.diagonal().transpose().sparseView();
+    const DerivedV M_diag_tr = M.diagonal().transpose();
+    const Eigen::SparseMatrix<Scalar> Aeq = M_diag_tr.sparseView();
     L *= -0.5;
     if(!igl::min_quad_with_fixed_precompute(
       L,Eigen::VectorXi(),Aeq,true,data.Poisson))