Browse Source

rather, use densebase for inputs

Former-commit-id: 71054c744b3c3df4b2888ed52020a6a73343b9eb
Alec Jacobson 8 years ago
parent
commit
b70dfc9599
2 changed files with 2 additions and 2 deletions
  1. 1 1
      include/igl/matlab_format.cpp
  2. 1 1
      include/igl/matlab_format.h

+ 1 - 1
include/igl/matlab_format.cpp

@@ -11,7 +11,7 @@
 
 
 template <typename DerivedM>
 template <typename DerivedM>
 IGL_INLINE const Eigen::WithFormat< DerivedM > igl::matlab_format(
 IGL_INLINE const Eigen::WithFormat< DerivedM > igl::matlab_format(
-  const Eigen::MatrixBase<DerivedM> & M,
+  const Eigen::DenseBase<DerivedM> & M,
   const std::string name)
   const std::string name)
 {
 {
   using namespace std;
   using namespace std;

+ 1 - 1
include/igl/matlab_format.h

@@ -42,7 +42,7 @@ namespace igl
   // // ];
   // // ];
   template <typename DerivedM>
   template <typename DerivedM>
   IGL_INLINE const Eigen::WithFormat< DerivedM > matlab_format(
   IGL_INLINE const Eigen::WithFormat< DerivedM > matlab_format(
-    const Eigen::MatrixBase<DerivedM> & M,
+    const Eigen::DenseBase<DerivedM> & M,
     const std::string name = "");
     const std::string name = "");
   // Same but for sparse matrices. Print IJV format into an auxillary variable
   // Same but for sparse matrices. Print IJV format into an auxillary variable
   // and then print a call to sparse which will construct the sparse matrix
   // and then print a call to sparse which will construct the sparse matrix