瀏覽代碼

bug in upper bounds

Former-commit-id: e061d3e757732addc70f67b5c27521657d8136b4
Alec Jacobson 8 年之前
父節點
當前提交
fce7d3d851
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/igl/active_set.cpp

+ 1 - 1
include/igl/active_set.cpp

@@ -77,7 +77,7 @@ IGL_INLINE igl::SolverStatus igl::active_set(
   {
     lx = p_lx;
   }
-  if(ux.size() == 0)
+  if(p_ux.size() == 0)
   {
     ux = Eigen::PlainObjectBase<Derivedux>::Constant(
       n,1,numeric_limits<typename Derivedux::Scalar>::max());