[docs] Fix typos

Change-Id: I447bd63b58a7bfc7c1df36dbef5dcba454d28256
This commit is contained in:
Alexander Karatarakis
2021-08-09 16:17:29 -07:00
parent c3129c3d4a
commit 90ba7d1ef4
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -355,14 +355,14 @@ respectively. Using these, the problem can be constructed as follows:
Problem problem;
// Add residual terms to the problem using the using the autodiff
// Add residual terms to the problem using the autodiff
// wrapper to get the derivatives automatically.
problem.AddResidualBlock(
new AutoDiffCostFunction<F1, 1, 1, 1>(new F1), nullptr, &x1, &x2);
problem.AddResidualBlock(
new AutoDiffCostFunction<F2, 1, 1, 1>(new F2), nullptr, &x3, &x4);
problem.AddResidualBlock(
new AutoDiffCostFunction<F3, 1, 1, 1>(new F3), nullptr, &x2, &x3)
new AutoDiffCostFunction<F3, 1, 1, 1>(new F3), nullptr, &x2, &x3);
problem.AddResidualBlock(
new AutoDiffCostFunction<F4, 1, 1, 1>(new F4), nullptr, &x1, &x4);
+1 -1
View File
@@ -106,7 +106,7 @@ int main(int argc, char** argv) {
double x4 = 1.0;
Problem problem;
// Add residual terms to the problem using the using the autodiff
// Add residual terms to the problem using the autodiff
// wrapper to get the derivatives automatically. The parameters, x1 through
// x4, are modified in place.
problem.AddResidualBlock(