~ubuntu-branches/ubuntu/utopic/blender/utopic-proposed

« back to all changes in this revision

Viewing changes to extern/libmv/third_party/ceres/include/ceres/cost_function.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-02-19 11:24:23 UTC
  • mfrom: (14.2.23 sid)
  • Revision ID: package-import@ubuntu.com-20140219112423-rkmaz2m7ha06d4tk
Tags: 2.69-3ubuntu1
* Merge with Debian; remaining changes:
  - Configure without OpenImageIO on armhf, as it is not available on
    Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
  // the case when computing cost only. If jacobians[i] is NULL, then
94
94
  // the jacobian block corresponding to the i'th parameter block must
95
95
  // not to be returned.
 
96
  //
 
97
  // The return value indicates whether the computation of the
 
98
  // residuals and/or jacobians was successful or not.
 
99
  //
 
100
  // This can be used to communicate numerical failures in jacobian
 
101
  // computations for instance.
 
102
  //
 
103
  // A more interesting and common use is to impose constraints on the
 
104
  // parameters. If the initial values of the parameter blocks satisfy
 
105
  // the constraints, then returning false whenever the constraints
 
106
  // are not satisfied will prevent the solver from moving into the
 
107
  // infeasible region. This is not a very sophisticated mechanism for
 
108
  // enforcing constraints, but is often good enough for things like
 
109
  // non-negativity constraints.
 
110
  //
 
111
  // Note that it is important that the initial values of the
 
112
  // parameter block must be feasible, otherwise the solver will
 
113
  // declare a numerical problem at iteration 0.
96
114
  virtual bool Evaluate(double const* const* parameters,
97
115
                        double* residuals,
98
116
                        double** jacobians) const = 0;