commit | 2a956099d460de430cf7addde3ec30cbb6556225 | [log] [tgz] |
---|---|---|
author | Sameer Agarwal <sameeragarwal@google.com> | Mon Sep 25 18:41:14 2017 -0700 |
committer | Sameer Agarwal <sameeragarwal@google.com> | Wed Sep 27 03:57:49 2017 +0000 |
tree | 722f84f4b10b8c9d89281440bac03cb620b88699 | |
parent | 28b1147a1d95ecc405d94ec4933d37e4f367ad29 [diff] |
Add missing Eigen traits to Jets Add highest and lowest traits to the Jet implementation. https://github.com/ceres-solver/ceres-solver/issues/310 Change-Id: I7c68fa8e2baa7742880d3faa21f366352e48aacf
diff --git a/include/ceres/jet.h b/include/ceres/jet.h index 934bc18..ff03f68 100644 --- a/include/ceres/jet.h +++ b/include/ceres/jet.h
@@ -899,6 +899,9 @@ Cost = 3 }; }; + + static inline Real highest() { return Real(std::numeric_limits<T>::max()); } + static inline Real lowest() { return Real(-std::numeric_limits<T>::max()); } }; #if EIGEN_VERSION_AT_LEAST(3, 3, 0)