Fix Jet numeric traits and unary plus

Unary plus returns a reference that dangles for a temporary operand.
numeric_limits reports max_exponent10 as min_exponent10 and lacks
has_denorm_loss, and NumTraits fixes dummy_precision at 1e-12 whatever
the scalar type. Return by value and mirror the limits and precision of
the scalar type. Drop noalias from coefficient-wise compound
assignments, rename constructor parameters that shadow the members, and
share the NaN derivatives of pow for an integer exponent.

Change-Id: Ica19e6b1c30e5baf786712d8b6d981d922907906
2 files changed
tree: 9f04a18eee8fcd53087a47a9eabca3b972802b59
  1. .github/
  2. bazel/
  3. cmake/
  4. config/
  5. data/
  6. docs/
  7. examples/
  8. include/
  9. internal/
  10. LICENSES/
  11. scripts/
  12. third_party/
  13. .bazelignore
  14. .clang-format
  15. .gitignore
  16. .gitmodules
  17. .readthedocs.yaml
  18. BUILD
  19. CITATION.cff
  20. CMakeLists.txt
  21. CONTRIBUTING.md
  22. LICENSE
  23. MODULE.bazel
  24. package.xml
  25. README.md
  26. REUSE.toml
  27. WORKSPACE
README.md

Android Linux macOS Windows

Ceres Solver

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.

  1. Non-linear Least Squares problems with bounds constraints.
  2. General unconstrained optimization problems.

Please see the Ceres Solver website for more information.