ceres::internal::FixedArray -> absl::FixedArray

Ceres Solver was using an old forked version of FixedArray,
now that we are using absl, we can use the official version
that ships with it.

Change-Id: Ic88d7f6e8a49b928d611f7cbb04172452b322b01
This commit is contained in:
Sameer Agarwal
2024-07-23 12:02:33 -07:00
parent c181b6dbc4
commit ebb66e655f
20 changed files with 57 additions and 1361 deletions
+3 -3
View File
@@ -33,8 +33,8 @@
#include <numeric>
#include "absl/container/fixed_array.h"
#include "ceres/internal/eigen.h"
#include "ceres/internal/fixed_array.h"
#include "ceres/parallel_for.h"
#include "ceres/parallel_vector_ops.h"
@@ -47,7 +47,7 @@ template <typename Derived>
inline double Norm(const Eigen::DenseBase<Derived>& x,
ContextImpl* context,
int num_threads) {
FixedArray<double> norms(num_threads, 0.);
absl::FixedArray<double> norms(num_threads, 0.);
ParallelFor(
context,
0,
@@ -77,7 +77,7 @@ inline double Dot(const VectorLikeX& x,
const VectorLikeY& y,
ContextImpl* context,
int num_threads) {
FixedArray<double> dots(num_threads, 0.);
absl::FixedArray<double> dots(num_threads, 0.);
ParallelFor(
context,
0,