Go to the documentation of this file.
22 #include <gtsam/config.h>
23 #include <gtsam/dllexport.h>
31 #include <tbb/scalable_allocator.h>
34 #if defined(__GNUC__) || defined(__clang__)
35 #define GTSAM_DEPRECATED __attribute__((deprecated))
36 #elif defined(_MSC_VER)
37 #define GTSAM_DEPRECATED __declspec(deprecated)
39 #define GTSAM_DEPRECATED
42 #ifdef GTSAM_USE_EIGEN_MKL_OPENMP
56 #define DO_PRAGMA(x) _Pragma (#x)
58 # define CLANG_DIAGNOSTIC_PUSH_IGNORE(diag) \
59 _Pragma("clang diagnostic push") \
60 DO_PRAGMA(clang diagnostic ignored diag)
62 # define CLANG_DIAGNOSTIC_PUSH_IGNORE(diag)
66 # define GCC_DIAGNOSTIC_PUSH_IGNORE(diag) \
67 _Pragma("GCC diagnostic push") \
68 DO_PRAGMA(GCC diagnostic ignored diag)
70 # define GCC_DIAGNOSTIC_PUSH_IGNORE(diag)
74 # define MSVC_DIAGNOSTIC_PUSH_IGNORE(code) \
75 _Pragma("warning ( push )") \
76 DO_PRAGMA(warning ( disable : code ))
78 # define MSVC_DIAGNOSTIC_PUSH_IGNORE(code)
81 #if defined(__clang__)
82 # define DIAGNOSTIC_POP() _Pragma("clang diagnostic pop")
83 #elif defined(__GNUC__)
84 # define DIAGNOSTIC_POP() _Pragma("GCC diagnostic pop")
85 #elif defined(_MSC_VER)
86 # define DIAGNOSTIC_POP() _Pragma("warning ( pop )")
88 # define DIAGNOSTIC_POP()
110 template<
typename TEST_TYPE,
typename BASIC_TYPE,
typename AS_NON_CONST,
116 template<
typename BASIC_TYPE,
typename AS_NON_CONST,
typename AS_CONST>
122 template<
typename BASIC_TYPE,
typename AS_NON_CONST,
typename AS_CONST>
133 template<
typename T, T defaultValue>
155 # pragma clang diagnostic push
156 # pragma clang diagnostic ignored "-Wunused-private-field" // Clang complains that previousOpenMPThreads is unused in the #else case below
167 #if defined GTSAM_USE_TBB && defined GTSAM_USE_EIGEN_MKL_OPENMP
185 # pragma clang diagnostic pop
194 #define assert_throw(CONDITION, EXCEPTION) ((void)0)
196 #define assert_throw(CONDITION, EXCEPTION) \
197 if (!(CONDITION)) { \
206 #if (_MSC_VER < 1800)
210 template<
typename T>
inline int isfinite(
T a) {
212 template<
typename T>
inline int isnan(
T a) {
214 template<
typename T>
inline int isinf(
T a) {
222 #define M_PI (3.14159265358979323846)
225 #define M_PI_2 (M_PI / 2.0)
228 #define M_PI_4 (M_PI / 4.0)
248 template<
typename ...>
using void_t = void;
265 template<
typename,
typename =
void_t<>>
279 #define GTSAM_MAKE_ALIGNED_OPERATOR_NEW \
280 EIGEN_MAKE_ALIGNED_OPERATOR_NEW \
281 using _eigen_aligned_allocator_trait = void;
288 #define GTSAM_MAKE_ALIGNED_OPERATOR_NEW_IF(NeedsToAlign) \
289 EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF(NeedsToAlign) \
290 using _eigen_aligned_allocator_trait = void;
Annotation for function names.
void omp_set_num_threads(int num_threads)
Eigen::Triplet< double > T
void void_t
Convenience void_t as we assume C++11, it will not conflict the std one in C++17 as this is in gtsam:...
std::uint64_t FactorIndex
Integer nonlinear factor index type.
int omp_get_num_procs(void)
std::string demangle(const char *name)
Pretty print Value type name.
ptrdiff_t DenseIndex
The index type for Eigen objects.
const T & operator*() const
unsigned __int64 uint64_t
ValueWithDefault(const T &_value)
std::uint64_t Key
Integer nonlinear key type.
int previousOpenMPThreads
int omp_get_num_threads(void)
gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:18:19