commit | a43073a38964b5169c8fd26c5c6fe389ba63d445 | [log] [tgz] |
---|---|---|
author | Sergey Sharybin <sergey@blender.org> | Thu Apr 03 11:47:50 2025 +0200 |
committer | Sergey Sharybin <sergey@blender.org> | Thu Apr 03 14:23:24 2025 +0200 |
tree | c73936334c37b7e022091c68189c2530c940aa25 | |
parent | 46b4b3b002994ddb9d6fc72268c3e271243cd1df [diff] |
Fix vector operations benchmark compilation Some of the benchmark functions use the same name as other functions in the ceres namespace. For example Axpby defines both benchmark but also an utility function in eigen_vector_ops.h. It seems to confuse some compilers and leads to a compilation error rooting deeper into the benchmark header itself: it seems that the compiler can not deduct which of the instances of such functions to use. Wrapping the file into an anonymous namespace solves the problem. Alternative could be to use benchmark namespace to make thins more explicit, for example ceres::internal::benchmark. Tested on the following configuration: - macOS 15.4 - Xcode 16.3 - Apple M3 CPU - google-benchmark 1.9.2 installed via homebrew Change-Id: Id127015dd22de99c6c3da88e71f255736e0bed82
Ceres Solver is an open source C++ library for modeling and solving large, complicated optimization problems. It is a feature rich, mature and performant library which has been used in production at Google since 2010. Ceres Solver can solve two kinds of problems.
Please see ceres-solver.org for more information.