123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- #include "ceres/solver_utils.h"
- #include "Eigen/Core"
- #include "ceres/internal/config.h"
- #include "ceres/internal/export.h"
- #include "ceres/version.h"
- #ifndef CERES_NO_CUDA
- #include "cuda_runtime.h"
- #endif
- namespace ceres::internal {
- #define CERES_EIGEN_VERSION \
- CERES_TO_STRING(EIGEN_WORLD_VERSION) "." \
- CERES_TO_STRING(EIGEN_MAJOR_VERSION) "." \
- CERES_TO_STRING(EIGEN_MINOR_VERSION)
- constexpr char kVersion[] =
-
- CERES_VERSION_STRING
- "-eigen-(" CERES_EIGEN_VERSION ")"
- #ifdef CERES_NO_LAPACK
- "-no_lapack"
- #else
- "-lapack"
- #endif
- #ifndef CERES_NO_SUITESPARSE
- "-suitesparse-(" CERES_SUITESPARSE_VERSION ")"
- #endif
- #if !defined(CERES_NO_EIGEN_METIS) || !defined(CERES_NO_CHOLMOD_PARTITION)
- "-metis-(" CERES_METIS_VERSION ")"
- #endif
- #ifndef CERES_NO_ACCELERATE_SPARSE
- "-acceleratesparse"
- #endif
- #ifdef CERES_USE_EIGEN_SPARSE
- "-eigensparse"
- #endif
- #ifdef CERES_RESTRUCT_SCHUR_SPECIALIZATIONS
- "-no_schur_specializations"
- #endif
- #ifdef CERES_NO_CUSTOM_BLAS
- "-no_custom_blas"
- #endif
- #ifndef CERES_NO_CUDA
- "-cuda-(" CERES_TO_STRING(CUDART_VERSION) ")"
- #endif
-
- std::string_view VersionString() noexcept { return kVersion
- }
|