Bladeren bron

better doc

Alec Jacobson 4 jaren geleden
bovenliggende
commit
4d8efa03ad
2 gewijzigde bestanden met toevoegingen van 5 en 6 verwijderingen
  1. 2 4
      include/igl/min_quad_with_fixed.cpp
  2. 3 2
      include/igl/min_quad_with_fixed.h

+ 2 - 4
include/igl/min_quad_with_fixed.cpp

@@ -21,7 +21,8 @@
 #include <unsupported/Eigen/SparseExtra>
 #include <cassert>
 #include <cstdio>
-#include <iostream>
+#include <igl/matlab_format.h>
+#include <type_traits>
 
 template <typename T, typename Derivedknown>
 IGL_INLINE bool igl::min_quad_with_fixed_precompute(
@@ -582,9 +583,6 @@ IGL_INLINE bool igl::min_quad_with_fixed(
   return min_quad_with_fixed_solve(data,B,Y,Beq,Z);
 }
 
-//#include <igl/matlab_format.h>
-#include <iostream>
-#include <type_traits>
 
 template <typename Scalar, int n, int m, bool Hpd>
 IGL_INLINE Eigen::Matrix<Scalar,n,1> igl::min_quad_with_fixed(

+ 3 - 2
include/igl/min_quad_with_fixed.h

@@ -136,8 +136,9 @@ namespace igl
   //   f  #H linear coefficients
   //   k  #H list of flags whether to fix value
   //   bc  #H value to fix to (if !k(i) then bc(i) is ignored)
-  //   A  #A by #H list of linear equality constraint coefficients
-  //   b  #A list of lienar equality right-hand sides
+  //   A  #A by #H list of linear equality constraint coefficients, must be
+  //     linearly independent (with self and fixed value constraints)
+  //   b  #A list of linear equality right-hand sides
   // Returns #H-long solution x
   template <typename Scalar, int n, int m, bool Hpd=true>
   IGL_INLINE Eigen::Matrix<Scalar,n,1> min_quad_with_fixed(