removed header bloat and added reference comment for fpEqual implementation

release/4.3a0
Varun Agrawal 2020-03-09 16:33:56 -04:00
parent 670cc7a74e
commit 8b00840169
3 changed files with 6 additions and 3 deletions

View File

@ -17,6 +17,7 @@
* @author Frank Dellaert
* @author Alex Cunningham
* @author Alex Hagiopol
* @author Varun Agrawal
*/
// \callgraph

View File

@ -34,7 +34,11 @@ using namespace std;
namespace gtsam {
/* ************************************************************************* */
/* *************************************************************************
* References:
* 1. https://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/
* 2. https://floating-point-gui.de/errors/comparison/
* ************************************************************************* */
bool fpEqual(double a, double b, double tol) {
using std::abs;
using std::isnan;

View File

@ -27,9 +27,7 @@
#include <gtsam/global_includes.h>
#include <Eigen/Core>
#include <cmath>
#include <iosfwd>
#include <limits>
#include <list>
namespace gtsam {