cmath rather than math.h

release/4.3a0
Frank Dellaert 2011-03-21 15:05:40 +00:00
parent 5fd04188e4
commit 105041ae01
6 changed files with 6 additions and 7 deletions

View File

@ -21,8 +21,8 @@
* @Author: Alex Cunningham * @Author: Alex Cunningham
*/ */
#include <cmath>
#include <iostream> #include <iostream>
#include <math.h>
#include <gtsam/slam/PriorFactor.h> #include <gtsam/slam/PriorFactor.h>
#include <gtsam/geometry/Rot2.h> #include <gtsam/geometry/Rot2.h>
#include <gtsam/linear/NoiseModel.h> #include <gtsam/linear/NoiseModel.h>

View File

@ -17,7 +17,7 @@
* Description: Dense QR, inspired by Tim Davis's dense solver * Description: Dense QR, inspired by Tim Davis's dense solver
*/ */
#include <math.h> #include <cmath>
#include <algorithm> #include <algorithm>
#include <stdexcept> #include <stdexcept>
#include <iostream> #include <iostream>

View File

@ -14,10 +14,9 @@
* @brief 3D Point * @brief 3D Point
*/ */
#include <cmath>
#include <gtsam/geometry/Point3.h> #include <gtsam/geometry/Point3.h>
#include <gtsam/base/Lie-inl.h> #include <gtsam/base/Lie-inl.h>
#include <math.h>
namespace gtsam { namespace gtsam {

View File

@ -18,7 +18,7 @@
#pragma once #pragma once
#include <math.h> #include <cmath>
#include <iostream> #include <iostream>
#include <stdexcept> #include <stdexcept>
#include <gtsam/geometry/tensors.h> #include <gtsam/geometry/tensors.h>

View File

@ -14,7 +14,7 @@
* @brief Unit tests for Pose3 class * @brief Unit tests for Pose3 class
*/ */
#include <math.h> #include <cmath>
#include <CppUnitLite/TestHarness.h> #include <CppUnitLite/TestHarness.h>
#include <gtsam/base/numericalDerivative.h> #include <gtsam/base/numericalDerivative.h>
#include <gtsam/base/lieProxies.h> #include <gtsam/base/lieProxies.h>

View File

@ -15,7 +15,7 @@
* based on testVSLAMFactor.cpp * based on testVSLAMFactor.cpp
*/ */
#include <math.h> #include <cmath>
#include <iostream> #include <iostream>
#include <CppUnitLite/TestHarness.h> #include <CppUnitLite/TestHarness.h>