From 90ba7d1ef4498a26a979b0f561749fdb88ed79d1 Mon Sep 17 00:00:00 2001 From: Alexander Karatarakis Date: Mon, 9 Aug 2021 16:17:29 -0700 Subject: [PATCH] [docs] Fix typos Change-Id: I447bd63b58a7bfc7c1df36dbef5dcba454d28256 --- docs/source/nnls_tutorial.rst | 4 ++-- examples/powell.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/nnls_tutorial.rst b/docs/source/nnls_tutorial.rst index 6c89032d3..7f7e8109a 100644 --- a/docs/source/nnls_tutorial.rst +++ b/docs/source/nnls_tutorial.rst @@ -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(new F1), nullptr, &x1, &x2); problem.AddResidualBlock( new AutoDiffCostFunction(new F2), nullptr, &x3, &x4); problem.AddResidualBlock( - new AutoDiffCostFunction(new F3), nullptr, &x2, &x3) + new AutoDiffCostFunction(new F3), nullptr, &x2, &x3); problem.AddResidualBlock( new AutoDiffCostFunction(new F4), nullptr, &x1, &x4); diff --git a/examples/powell.cc b/examples/powell.cc index 7212710fc..1a09a73a0 100644 --- a/examples/powell.cc +++ b/examples/powell.cc @@ -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(