浏览代码

Lint changes from William Rucklidge.

Change-Id: I4c34caa57c48c97df213d6fb44a1a2534a953f0f
Sameer Agarwal 10 年之前
父节点
当前提交
649f5c22b8
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      docs/source/nnls_modeling.rst
  2. 1 1
      internal/ceres/local_parameterization.cc

+ 2 - 2
docs/source/nnls_modeling.rst

@@ -1152,7 +1152,7 @@ Instances
 
 
    When using homogeneous vectors it is useful to only make updates
    When using homogeneous vectors it is useful to only make updates
    orthogonal to that :math:`n`-vector defining the homogeneous
    orthogonal to that :math:`n`-vector defining the homogeneous
-   vector [HartleyZisserman]_. One way to do this is to let :math:`\Delta x` 
+   vector [HartleyZisserman]_. One way to do this is to let :math:`\Delta x`
    be a :math:`n-1` dimensional vector and define :math:`\boxplus` to be
    be a :math:`n-1` dimensional vector and define :math:`\boxplus` to be
 
 
     .. math:: \boxplus(x, \Delta x) = \left[ \frac{\sin\left(0.5 |\Delta x|\right)}{|\Delta x|} \Delta x, \cos(0.5 |\Delta x|) \right] * x
     .. math:: \boxplus(x, \Delta x) = \left[ \frac{\sin\left(0.5 |\Delta x|\right)}{|\Delta x|} \Delta x, \cos(0.5 |\Delta x|) \right] * x
@@ -1160,7 +1160,7 @@ Instances
    The multiplication between the two vectors on the right hand side
    The multiplication between the two vectors on the right hand side
    is defined as an operator which applies the update orthogonal to
    is defined as an operator which applies the update orthogonal to
    :math:`x` to remain on the sphere. Note, it is assumed that
    :math:`x` to remain on the sphere. Note, it is assumed that
-   last element of :math:`x` is the scalar component of the homogeneous 
+   last element of :math:`x` is the scalar component of the homogeneous
    vector.
    vector.
 
 
 
 

+ 1 - 1
internal/ceres/local_parameterization.cc

@@ -222,7 +222,7 @@ bool HomogeneousVectorParameterization::Plus(const double* x_ptr,
   // Apply the delta update to remain on the unit sphere. See section A6.9.3
   // Apply the delta update to remain on the unit sphere. See section A6.9.3
   // on page 625 of Hartley & Zisserman (2nd Edition) for a detailed
   // on page 625 of Hartley & Zisserman (2nd Edition) for a detailed
   // description.
   // description.
-  x_plus_delta = x.norm() * (y -  v * (beta *(v.transpose() * y)));
+  x_plus_delta = x.norm() * (y -  v * (beta * (v.transpose() * y)));
 
 
   return true;
   return true;
 }
 }