ClangTidy cleanup part 1
Change-Id: Id592fc68b8f184cd002df9d94a68d05fbbf9c24d
diff --git a/examples/circle_fit.cc b/examples/circle_fit.cc
index 45cf5e3..7605604 100644
--- a/examples/circle_fit.cc
+++ b/examples/circle_fit.cc
@@ -50,14 +50,14 @@
//
// [1] http://www.mathworks.com/matlabcentral/fileexchange/5557-circle-fit/content/circfit.m // NOLINT
+#include <cmath>
#include <cstdio>
+#include <iostream>
#include <vector>
#include "absl/flags/flag.h"
#include "absl/flags/parse.h"
-#include "absl/log/check.h"
#include "absl/log/initialize.h"
-#include "absl/log/log.h"
#include "ceres/ceres.h"
ABSL_FLAG(double,
@@ -122,7 +122,7 @@
double initial_r = r;
// Parameterize r as m^2 so that it can't be negative.
- double m = sqrt(r);
+ double m = std::sqrt(r);
ceres::Problem problem;
diff --git a/examples/powell.cc b/examples/powell.cc
index c46cff7..8b2ab05 100644
--- a/examples/powell.cc
+++ b/examples/powell.cc
@@ -44,7 +44,8 @@
// Garbow and Kenneth E. Hillstrom in ACM Transactions on Mathematical Software,
// Vol 7(1), March 1981.
-#include <vector>
+#include <iostream>
+#include <string>
#include "absl/flags/flag.h"
#include "absl/flags/parse.h"
diff --git a/examples/rosenbrock_analytic_diff.cc b/examples/rosenbrock_analytic_diff.cc
index 5b7c30d..fb1856e 100644
--- a/examples/rosenbrock_analytic_diff.cc
+++ b/examples/rosenbrock_analytic_diff.cc
@@ -32,6 +32,8 @@
// (https://en.wikipedia.org/wiki/Rosenbrock_function) using
// GradientProblemSolver using analytic derivatives.
+#include <iostream>
+
#include "absl/log/initialize.h"
#include "ceres/ceres.h"
diff --git a/examples/slam/pose_graph_3d/pose_graph_3d.cc b/examples/slam/pose_graph_3d/pose_graph_3d.cc
index 783f685..8a58315 100644
--- a/examples/slam/pose_graph_3d/pose_graph_3d.cc
+++ b/examples/slam/pose_graph_3d/pose_graph_3d.cc
@@ -32,6 +32,7 @@
#include <iostream>
#include <string>
+#include "Eigen/Core"
#include "absl/flags/flag.h"
#include "absl/flags/parse.h"
#include "absl/log/check.h"
diff --git a/internal/ceres/array_selector_test.cc b/internal/ceres/array_selector_test.cc
index ff1bcd7..36155f1 100644
--- a/internal/ceres/array_selector_test.cc
+++ b/internal/ceres/array_selector_test.cc
@@ -31,6 +31,12 @@
#include "ceres/internal/array_selector.h"
+#include <array>
+#include <type_traits>
+#include <vector>
+
+#include "ceres/internal/fixed_array.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
namespace ceres::internal {
diff --git a/internal/ceres/autodiff_manifold_test.cc b/internal/ceres/autodiff_manifold_test.cc
index c687719..e691da6 100644
--- a/internal/ceres/autodiff_manifold_test.cc
+++ b/internal/ceres/autodiff_manifold_test.cc
@@ -31,11 +31,13 @@
#include "ceres/autodiff_manifold.h"
#include <cmath>
+#include <limits>
#include "ceres/constants.h"
-#include "ceres/manifold.h"
+#include "ceres/internal/eigen.h"
#include "ceres/manifold_test_utils.h"
#include "ceres/rotation.h"
+#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace ceres::internal {
diff --git a/internal/ceres/block_random_access_diagonal_matrix_test.cc b/internal/ceres/block_random_access_diagonal_matrix_test.cc
index 9590d1b..f765ed1 100644
--- a/internal/ceres/block_random_access_diagonal_matrix_test.cc
+++ b/internal/ceres/block_random_access_diagonal_matrix_test.cc
@@ -30,11 +30,14 @@
#include "ceres/block_random_access_diagonal_matrix.h"
-#include <limits>
+#include <cmath>
#include <memory>
#include <vector>
#include "Eigen/Cholesky"
+#include "ceres/block_random_access_matrix.h"
+#include "ceres/block_structure.h"
+#include "ceres/context_impl.h"
#include "ceres/internal/eigen.h"
#include "gtest/gtest.h"
@@ -133,10 +136,10 @@
kTolerance);
// There is nothing else in the matrix besides these four blocks.
- EXPECT_NEAR(
- dense.norm(),
- sqrt(6 * 1.0 + 3 * 4.0 + 12 * 16.0 + 4 * 25.0 + 20 * 81.0 + 5 * 100.0),
- kTolerance);
+ EXPECT_NEAR(dense.norm(),
+ std::sqrt(6 * 1.0 + 3 * 4.0 + 12 * 16.0 + 4 * 25.0 + 20 * 81.0 +
+ 5 * 100.0),
+ kTolerance);
}
TEST_F(BlockRandomAccessDiagonalMatrixTest, RightMultiplyAndAccumulate) {
diff --git a/internal/ceres/block_sparse_matrix_test.cc b/internal/ceres/block_sparse_matrix_test.cc
index c27146d..cd15efd 100644
--- a/internal/ceres/block_sparse_matrix_test.cc
+++ b/internal/ceres/block_sparse_matrix_test.cc
@@ -31,13 +31,13 @@
#include "ceres/block_sparse_matrix.h"
#include <algorithm>
+#include <limits>
#include <memory>
#include <random>
-#include <string>
#include <vector>
+#include "ceres/block_structure.h"
#include "ceres/casts.h"
-#include "ceres/crs_matrix.h"
#include "ceres/internal/eigen.h"
#include "ceres/linear_least_squares_problems.h"
#include "ceres/triplet_sparse_matrix.h"
diff --git a/internal/ceres/cost_function_to_functor_test.cc b/internal/ceres/cost_function_to_functor_test.cc
index bc081f4..7072d4b 100644
--- a/internal/ceres/cost_function_to_functor_test.cc
+++ b/internal/ceres/cost_function_to_functor_test.cc
@@ -36,8 +36,10 @@
#include <vector>
#include "ceres/autodiff_cost_function.h"
+#include "ceres/cost_function.h"
#include "ceres/dynamic_autodiff_cost_function.h"
#include "ceres/dynamic_cost_function_to_functor.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
namespace ceres::internal {
diff --git a/internal/ceres/covariance_test.cc b/internal/ceres/covariance_test.cc
index 49e5d6f..024d302 100644
--- a/internal/ceres/covariance_test.cc
+++ b/internal/ceres/covariance_test.cc
@@ -31,7 +31,6 @@
#include "ceres/covariance.h"
#include <algorithm>
-#include <cmath>
#include <cstdint>
#include <map>
#include <memory>
@@ -44,6 +43,7 @@
#include "ceres/cost_function.h"
#include "ceres/covariance_impl.h"
#include "ceres/internal/config.h"
+#include "ceres/internal/eigen.h"
#include "ceres/manifold.h"
#include "ceres/map_util.h"
#include "ceres/problem_impl.h"
diff --git a/internal/ceres/cuda_vector_test.cc b/internal/ceres/cuda_vector_test.cc
index 0ea4703..9da89f0 100644
--- a/internal/ceres/cuda_vector_test.cc
+++ b/internal/ceres/cuda_vector_test.cc
@@ -30,10 +30,10 @@
#include "ceres/cuda_vector.h"
-#include <string>
-
+#include "ceres/context_impl.h"
#include "ceres/internal/config.h"
#include "ceres/internal/eigen.h"
+#include "gmock/gmock.h"
#include "gtest/gtest.h"
namespace ceres {
diff --git a/internal/ceres/dense_cholesky_test.cc b/internal/ceres/dense_cholesky_test.cc
index b5972ef..6f5b7f2 100644
--- a/internal/ceres/dense_cholesky_test.cc
+++ b/internal/ceres/dense_cholesky_test.cc
@@ -30,18 +30,19 @@
#include "ceres/dense_cholesky.h"
+#include <limits>
#include <memory>
-#include <numeric>
#include <sstream>
#include <string>
#include <utility>
-#include <vector>
#include "Eigen/Dense"
+#include "ceres/context_impl.h"
#include "ceres/internal/config.h"
#include "ceres/internal/eigen.h"
#include "ceres/iterative_refiner.h"
#include "ceres/linear_solver.h"
+#include "ceres/types.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
diff --git a/internal/ceres/dense_linear_solver_test.cc b/internal/ceres/dense_linear_solver_test.cc
index 9cece56..f764713 100644
--- a/internal/ceres/dense_linear_solver_test.cc
+++ b/internal/ceres/dense_linear_solver_test.cc
@@ -28,11 +28,16 @@
//
// Author: sameeragarwal@google.com (Sameer Agarwal)
+#include <limits>
#include <memory>
+#include <sstream>
+#include <string>
#include "ceres/casts.h"
#include "ceres/context_impl.h"
+#include "ceres/dense_sparse_matrix.h"
#include "ceres/internal/config.h"
+#include "ceres/internal/eigen.h"
#include "ceres/linear_least_squares_problems.h"
#include "ceres/linear_solver.h"
#include "ceres/triplet_sparse_matrix.h"
diff --git a/internal/ceres/dynamic_autodiff_cost_function_test.cc b/internal/ceres/dynamic_autodiff_cost_function_test.cc
index 51366c6..5b7261c 100644
--- a/internal/ceres/dynamic_autodiff_cost_function_test.cc
+++ b/internal/ceres/dynamic_autodiff_cost_function_test.cc
@@ -32,10 +32,11 @@
#include "ceres/dynamic_autodiff_cost_function.h"
-#include <cstddef>
#include <memory>
+#include <utility>
#include <vector>
+#include "ceres/cost_function.h"
#include "ceres/types.h"
#include "gtest/gtest.h"
diff --git a/internal/ceres/dynamic_sparse_normal_cholesky_solver_test.cc b/internal/ceres/dynamic_sparse_normal_cholesky_solver_test.cc
index 100d574..4d9f2bf 100644
--- a/internal/ceres/dynamic_sparse_normal_cholesky_solver_test.cc
+++ b/internal/ceres/dynamic_sparse_normal_cholesky_solver_test.cc
@@ -29,12 +29,14 @@
// Author: sameeragarwal@google.com (Sameer Agarwal)
#include <memory>
+#include <utility>
#include "Eigen/Cholesky"
#include "ceres/casts.h"
#include "ceres/compressed_row_sparse_matrix.h"
#include "ceres/context_impl.h"
#include "ceres/internal/config.h"
+#include "ceres/internal/eigen.h"
#include "ceres/linear_least_squares_problems.h"
#include "ceres/linear_solver.h"
#include "ceres/triplet_sparse_matrix.h"
diff --git a/internal/ceres/generate_bundle_adjustment_tests.py b/internal/ceres/generate_bundle_adjustment_tests.py
index 0359b40..d8d1646 100644
--- a/internal/ceres/generate_bundle_adjustment_tests.py
+++ b/internal/ceres/generate_bundle_adjustment_tests.py
@@ -140,7 +140,11 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
%(preprocessor_conditions_begin)s
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_cuda_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_cuda_auto_test.cc
index e48f646..0186836 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_cuda_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_cuda_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_cuda_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_cuda_auto_threads_test.cc
index 336066e..5d9d9f3 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_cuda_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_cuda_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_cuda_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_cuda_user_test.cc
index 86df64d..a34eaa1 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_cuda_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_cuda_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_cuda_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_cuda_user_threads_test.cc
index 5e752e4..dbe88d1 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_cuda_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_cuda_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_eigen_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_eigen_auto_test.cc
index faca44e..ce59498 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_eigen_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_eigen_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
namespace ceres::internal {
TEST_F(BundleAdjustmentTest,
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_eigen_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_eigen_auto_threads_test.cc
index c4db182..8086c67 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_eigen_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_eigen_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
namespace ceres::internal {
TEST_F(BundleAdjustmentTest,
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_eigen_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_eigen_user_test.cc
index 7fe05d1..fc0e804 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_eigen_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_eigen_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
namespace ceres::internal {
TEST_F(BundleAdjustmentTest,
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_eigen_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_eigen_user_threads_test.cc
index 7c34e20..87f71eb 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_eigen_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_eigen_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
namespace ceres::internal {
TEST_F(BundleAdjustmentTest,
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_lapack_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_lapack_auto_test.cc
index 79ec5ce..143238e 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_lapack_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_lapack_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_LAPACK
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_lapack_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_lapack_auto_threads_test.cc
index ee74420..3ba12f1 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_lapack_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_lapack_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_LAPACK
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_lapack_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_lapack_user_test.cc
index 205de87..852a88f 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_lapack_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_lapack_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_LAPACK
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_lapack_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_lapack_user_threads_test.cc
index 03a0a73..32a71ae 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_lapack_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_denseschur_lapack_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_LAPACK
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clustjacobi_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clustjacobi_auto_test.cc
index 8ab6a9b..1873fcf 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clustjacobi_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clustjacobi_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_ACCELERATE_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clustjacobi_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clustjacobi_auto_threads_test.cc
index cf6be8d..f97cf65 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clustjacobi_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clustjacobi_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_ACCELERATE_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clustjacobi_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clustjacobi_user_test.cc
index b6ca30f..83011b5 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clustjacobi_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clustjacobi_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_ACCELERATE_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clustjacobi_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clustjacobi_user_threads_test.cc
index 2ef6aa1..4b287bf 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clustjacobi_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clustjacobi_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_ACCELERATE_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clusttri_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clusttri_auto_test.cc
index ea24955..572bc64 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clusttri_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clusttri_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_ACCELERATE_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clusttri_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clusttri_auto_threads_test.cc
index 217edc3..2aa0ba7 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clusttri_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clusttri_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_ACCELERATE_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clusttri_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clusttri_user_test.cc
index 4b66d17..a2c60f0 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clusttri_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clusttri_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_ACCELERATE_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clusttri_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clusttri_user_threads_test.cc
index 3e84734..c5d1e85 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clusttri_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_acceleratesparse_clusttri_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_ACCELERATE_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clustjacobi_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clustjacobi_auto_test.cc
index 1719aee..d9a2ee2 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clustjacobi_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clustjacobi_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
#ifndef CERES_NO_CUDSS
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clustjacobi_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clustjacobi_auto_threads_test.cc
index c0c3489..4d8d3f7 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clustjacobi_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clustjacobi_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
#ifndef CERES_NO_CUDSS
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clustjacobi_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clustjacobi_user_test.cc
index 554a432..05c0531 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clustjacobi_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clustjacobi_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
#ifndef CERES_NO_CUDSS
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clustjacobi_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clustjacobi_user_threads_test.cc
index 1e39f65..10b0b64 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clustjacobi_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clustjacobi_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
#ifndef CERES_NO_CUDSS
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clusttri_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clusttri_auto_test.cc
index 6addad5..12f14ce 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clusttri_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clusttri_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
#ifndef CERES_NO_CUDSS
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clusttri_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clusttri_auto_threads_test.cc
index d2fefb8..2b213f7 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clusttri_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clusttri_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
#ifndef CERES_NO_CUDSS
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clusttri_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clusttri_user_test.cc
index ae04eec..3db8dcd 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clusttri_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clusttri_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
#ifndef CERES_NO_CUDSS
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clusttri_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clusttri_user_threads_test.cc
index cad2051..46ab7f7 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clusttri_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_cudasparse_clusttri_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
#ifndef CERES_NO_CUDSS
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clustjacobi_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clustjacobi_auto_test.cc
index c1ceb9f..acb4d85 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clustjacobi_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clustjacobi_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifdef CERES_USE_EIGEN_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clustjacobi_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clustjacobi_auto_threads_test.cc
index 35760db..c69ffcf 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clustjacobi_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clustjacobi_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifdef CERES_USE_EIGEN_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clustjacobi_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clustjacobi_user_test.cc
index 6b35e6b..2664f45 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clustjacobi_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clustjacobi_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifdef CERES_USE_EIGEN_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clustjacobi_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clustjacobi_user_threads_test.cc
index 9b36562..dafafa1 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clustjacobi_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clustjacobi_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifdef CERES_USE_EIGEN_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clusttri_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clusttri_auto_test.cc
index a62c8ba..f88b45a 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clusttri_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clusttri_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifdef CERES_USE_EIGEN_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clusttri_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clusttri_auto_threads_test.cc
index f306f81..434813a 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clusttri_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clusttri_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifdef CERES_USE_EIGEN_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clusttri_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clusttri_user_test.cc
index 62d60b1..7b275cc 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clusttri_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clusttri_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifdef CERES_USE_EIGEN_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clusttri_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clusttri_user_threads_test.cc
index 223a76a..47675dc 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clusttri_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_eigensparse_clusttri_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifdef CERES_USE_EIGEN_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_auto_test.cc
index 8e9afa1..2e2290b 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
namespace ceres::internal {
TEST_F(BundleAdjustmentTest,
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_auto_threads_test.cc
index 433bf76..9082bdb 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
namespace ceres::internal {
TEST_F(BundleAdjustmentTest,
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_user_test.cc
index 8e740da..725d41a 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
namespace ceres::internal {
TEST_F(BundleAdjustmentTest,
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_user_threads_test.cc
index 705bfe2..bbe8123 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_jacobi_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
namespace ceres::internal {
TEST_F(BundleAdjustmentTest,
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_auto_test.cc
index 6b46f3d..5a0296b 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
namespace ceres::internal {
TEST_F(BundleAdjustmentTest,
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_auto_threads_test.cc
index a74efa8..6ae03cc 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
namespace ceres::internal {
TEST_F(BundleAdjustmentTest,
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_user_test.cc
index d0fa244..2367b16 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
namespace ceres::internal {
TEST_F(BundleAdjustmentTest,
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_user_threads_test.cc
index e5418c9..d8fdf3c 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_schurjacobi_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
namespace ceres::internal {
TEST_F(BundleAdjustmentTest,
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_spse_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_spse_auto_test.cc
index 1287a61..3dc3310 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_spse_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_spse_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
namespace ceres::internal {
TEST_F(BundleAdjustmentTest,
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_spse_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_spse_auto_threads_test.cc
index 739d7bf..3d123a3 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_spse_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_spse_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
namespace ceres::internal {
TEST_F(BundleAdjustmentTest,
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_spse_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_spse_user_test.cc
index 38b8d36..43a1bb9 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_spse_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_spse_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
namespace ceres::internal {
TEST_F(BundleAdjustmentTest,
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_spse_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_spse_user_threads_test.cc
index 2a715cc..82b9db8 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_spse_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_spse_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
namespace ceres::internal {
TEST_F(BundleAdjustmentTest,
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_auto_test.cc
index d25a7e7..73d2828 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_SUITESPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_auto_threads_test.cc
index 38d65b1..e6282b2 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_SUITESPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_user_test.cc
index 40b7451..bb7d059 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_SUITESPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_user_threads_test.cc
index d12b524..cb8052c 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clustjacobi_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_SUITESPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_auto_test.cc
index 7206132..b17656e 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_SUITESPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_auto_threads_test.cc
index 61efa20..dbce752 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_SUITESPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_user_test.cc
index b750cbb..7b725fd 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_SUITESPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_user_threads_test.cc
index f704e32..49ddbd3 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_iterschur_suitesparse_clusttri_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_SUITESPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_acceleratesparse_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_acceleratesparse_auto_test.cc
index 05caf3c..efa7e27 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_acceleratesparse_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_acceleratesparse_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_ACCELERATE_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_acceleratesparse_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_acceleratesparse_auto_threads_test.cc
index bfd1d4b..2d27f58 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_acceleratesparse_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_acceleratesparse_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_ACCELERATE_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_acceleratesparse_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_acceleratesparse_user_test.cc
index 0017874..5364911 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_acceleratesparse_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_acceleratesparse_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_ACCELERATE_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_acceleratesparse_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_acceleratesparse_user_threads_test.cc
index 7bb7f0b..673f505 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_acceleratesparse_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_acceleratesparse_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_ACCELERATE_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cudasparse_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cudasparse_auto_test.cc
index 77f2fc1..592d471 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cudasparse_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cudasparse_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
#ifndef CERES_NO_CUDSS
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cudasparse_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cudasparse_auto_threads_test.cc
index f436544..8aa6441 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cudasparse_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cudasparse_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
#ifndef CERES_NO_CUDSS
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cudasparse_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cudasparse_user_test.cc
index dea6202..f79c732 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cudasparse_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cudasparse_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
#ifndef CERES_NO_CUDSS
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cudasparse_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cudasparse_user_threads_test.cc
index 90a69e8..9a2dc37 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cudasparse_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_cudasparse_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
#ifndef CERES_NO_CUDSS
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_auto_test.cc
index a15553c..a8e2e9a 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifdef CERES_USE_EIGEN_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_auto_threads_test.cc
index 2134295..e44fab1 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifdef CERES_USE_EIGEN_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_user_test.cc
index de00ccb..353fb44 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifdef CERES_USE_EIGEN_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_user_threads_test.cc
index f4ad5e0..61b7502 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_eigensparse_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifdef CERES_USE_EIGEN_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_auto_test.cc
index f72ca55..266f708 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_SUITESPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_auto_threads_test.cc
index d301e5e..ad07bf3 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_SUITESPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_user_test.cc
index db22d6c..2322b5f 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_SUITESPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_user_threads_test.cc
index 8b97820..e2acfe9 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparsecholesky_suitesparse_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_SUITESPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_acceleratesparse_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_acceleratesparse_auto_test.cc
index d4b8dd2..6e0c670 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_acceleratesparse_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_acceleratesparse_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_ACCELERATE_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_acceleratesparse_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_acceleratesparse_auto_threads_test.cc
index 8f7aacf..4b03456 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_acceleratesparse_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_acceleratesparse_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_ACCELERATE_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_acceleratesparse_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_acceleratesparse_user_test.cc
index 257cf0d..ff4ca8c 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_acceleratesparse_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_acceleratesparse_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_ACCELERATE_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_acceleratesparse_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_acceleratesparse_user_threads_test.cc
index dea1a28..edd28a4 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_acceleratesparse_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_acceleratesparse_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_ACCELERATE_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cudasparse_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cudasparse_auto_test.cc
index 5c45977..3a46a0d 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cudasparse_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cudasparse_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
#ifndef CERES_NO_CUDSS
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cudasparse_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cudasparse_auto_threads_test.cc
index b866acb..a3cce46 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cudasparse_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cudasparse_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
#ifndef CERES_NO_CUDSS
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cudasparse_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cudasparse_user_test.cc
index a7e5e14..ab3caae 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cudasparse_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cudasparse_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
#ifndef CERES_NO_CUDSS
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cudasparse_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cudasparse_user_threads_test.cc
index 7319b28..e37c3f8 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cudasparse_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_cudasparse_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_CUDA
#ifndef CERES_NO_CUDSS
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_auto_test.cc
index bcc2cc4..8d77860 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifdef CERES_USE_EIGEN_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_auto_threads_test.cc
index e70f9ee..6385b5e 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifdef CERES_USE_EIGEN_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_user_test.cc
index cb408af..0fb935e 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifdef CERES_USE_EIGEN_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_user_threads_test.cc
index 8902146..49dd00a 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_eigensparse_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifdef CERES_USE_EIGEN_SPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_auto_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_auto_test.cc
index aaa38c0..7bcb698 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_auto_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_auto_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_SUITESPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_auto_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_auto_threads_test.cc
index a3f4ad0..e28dc99 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_auto_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_auto_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_SUITESPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_user_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_user_test.cc
index 53cad2d..6ae6079 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_user_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_user_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_SUITESPARSE
namespace ceres::internal {
diff --git a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_user_threads_test.cc b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_user_threads_test.cc
index d23a277..2340943 100644
--- a/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_user_threads_test.cc
+++ b/internal/ceres/generated_bundle_adjustment_tests/ba_sparseschur_suitesparse_user_threads_test.cc
@@ -37,8 +37,12 @@
#include "ceres/bundle_adjustment_test_util.h"
#include "ceres/internal/config.h"
+#include "ceres/problem.h"
+#include "ceres/solver.h"
+#include "ceres/types.h"
#include "gtest/gtest.h"
+
#ifndef CERES_NO_SUITESPARSE
namespace ceres::internal {