Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
eigenpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guilhem Saurel
eigenpy
Commits
9a2af18e
Verified
Commit
9a2af18e
authored
2 years ago
by
Justin Carpentier
Browse files
Options
Downloads
Patches
Plain Diff
core: add and expose printEigenVersion
parent
7945405b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
include/eigenpy/version.hpp
+8
-0
8 additions, 0 deletions
include/eigenpy/version.hpp
python/main.cpp
+2
-1
2 additions, 1 deletion
python/main.cpp
src/version.cpp
+10
-3
10 additions, 3 deletions
src/version.cpp
with
20 additions
and
4 deletions
include/eigenpy/version.hpp
+
8
−
0
View file @
9a2af18e
...
...
@@ -18,6 +18,14 @@ namespace eigenpy {
///
std
::
string
EIGENPY_DLLAPI
printVersion
(
const
std
::
string
&
delimiter
=
"."
);
///
/// \brief Returns the current version of Eigen3 as a string using
/// the following standard:
/// EIGEN_MINOR_VERSION.EIGEN_MINOR_VERSION.EIGEN_PATCH_VERSION
///
std
::
string
EIGENPY_DLLAPI
printEigenVersion
(
const
std
::
string
&
delimiter
=
"."
);
///
/// \brief Checks if the current version of EigenPy is at least the version
/// provided
...
...
This diff is collapsed.
Click to expand it.
python/main.cpp
+
2
−
1
View file @
9a2af18e
/*
* Copyright 2014-2019, CNRS
* Copyright 2018-202
2
, INRIA
* Copyright 2018-202
3
, INRIA
*/
#include
<boost/python/scope.hpp>
...
...
@@ -22,6 +22,7 @@ BOOST_PYTHON_MODULE(eigenpy_pywrap) {
enableEigenPy
();
bp
::
scope
().
attr
(
"__version__"
)
=
eigenpy
::
printVersion
();
bp
::
scope
().
attr
(
"__eigen_version__"
)
=
eigenpy
::
printEigenVersion
();
bp
::
scope
().
attr
(
"__raw_version__"
)
=
bp
::
str
(
EIGENPY_VERSION
);
bp
::
def
(
"checkVersionAtLeast"
,
&
eigenpy
::
checkVersionAtLeast
,
bp
::
args
(
"major_version"
,
"minor_version"
,
"patch_version"
),
...
...
This diff is collapsed.
Click to expand it.
src/version.cpp
+
10
−
3
View file @
9a2af18e
//
// Copyright (c) 2019 INRIA
// Copyright (c) 2019
-2023
INRIA
//
#include
"eigenpy/version.hpp"
#include
"eigenpy/config.hpp"
#include
<sstream>
#include
"eigenpy/config.hpp"
#include
<Eigen/Core>
namespace
eigenpy
{
...
...
@@ -17,6 +17,13 @@ std::string printVersion(const std::string& delimiter) {
return
oss
.
str
();
}
std
::
string
printEigenVersion
(
const
std
::
string
&
delimiter
)
{
std
::
ostringstream
oss
;
oss
<<
EIGEN_MAJOR_VERSION
<<
delimiter
<<
EIGEN_MINOR_VERSION
<<
delimiter
<<
EIGEN_MINOR_VERSION
;
return
oss
.
str
();
}
bool
checkVersionAtLeast
(
unsigned
int
major_version
,
unsigned
int
minor_version
,
unsigned
int
patch_version
)
{
return
EIGENPY_VERSION_AT_LEAST
(
major_version
,
minor_version
,
patch_version
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment