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
bd7beda4
Verified
Commit
bd7beda4
authored
3 years ago
by
Justin Carpentier
Browse files
Options
Downloads
Patches
Plain Diff
cmake: change python lib name (to avoid conflicts)
parent
38869d76
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
python/CMakeLists.txt
+0
-1
0 additions, 1 deletion
python/CMakeLists.txt
python/eigenpy/__init__.py
+3
-3
3 additions, 3 deletions
python/eigenpy/__init__.py
python/main.cpp
+11
-11
11 additions, 11 deletions
python/main.cpp
with
14 additions
and
15 deletions
python/CMakeLists.txt
+
0
−
1
View file @
bd7beda4
...
...
@@ -31,7 +31,6 @@ SET_TARGET_PROPERTIES(${PYWRAP}
PROPERTIES
PREFIX
""
SUFFIX
${
PYTHON_EXT_SUFFIX
}
OUTPUT_NAME
"
${
PROJECT_NAME
}
"
LIBRARY_OUTPUT_DIRECTORY
"
${
CMAKE_BINARY_DIR
}
/python/
${
PROJECT_NAME
}
"
)
...
...
This diff is collapsed.
Click to expand it.
python/eigenpy/__init__.py
+
3
−
3
View file @
bd7beda4
#
# Copyright (c) 2017-201
9
CNRS INRIA
# Copyright (c) 2017-20
2
1 CNRS INRIA
#
from
.eigenpy
import
*
from
.eigenpy
import
__version__
,
__raw_version__
from
.eigenpy
_pywrap
import
*
from
.eigenpy
_pywrap
import
__version__
,
__raw_version__
This diff is collapsed.
Click to expand it.
python/main.cpp
+
11
−
11
View file @
bd7beda4
/*
* Copyright 2014-2019, CNRS
* Copyright 2018-202
0
, INRIA
* Copyright 2018-202
1
, INRIA
*/
#include
"eigenpy/eigenpy.hpp"
...
...
@@ -19,42 +19,42 @@
using
namespace
eigenpy
;
BOOST_PYTHON_MODULE
(
eigenpy
)
BOOST_PYTHON_MODULE
(
eigenpy
_pywrap
)
{
namespace
bp
=
boost
::
python
;
enableEigenPy
();
bp
::
scope
().
attr
(
"__version__"
)
=
eigenpy
::
printVersion
();
bp
::
scope
().
attr
(
"__raw_version__"
)
=
bp
::
str
(
EIGENPY_VERSION
);
bp
::
def
(
"checkVersionAtLeast"
,
&
eigenpy
::
checkVersionAtLeast
,
bp
::
args
(
"major_version"
,
"minor_version"
,
"patch_version"
),
"Checks if the current version of EigenPy is at least the version provided by the input arguments."
);
exposeAngleAxis
();
exposeQuaternion
();
exposeGeometryConversion
();
exposeComputationInfo
();
{
bp
::
scope
solvers
=
boost
::
python
::
class_
<
SolversScope
>
(
"solvers"
);
exposeSolvers
();
exposePreconditioners
();
register_symbolic_link_to_registered_type
<
Eigen
::
ComputationInfo
>
();
}
{
using
namespace
Eigen
;
bp
::
def
(
"is_approx"
,(
bool
(
*
)(
const
Eigen
::
MatrixBase
<
MatrixXd
>
&
,
const
Eigen
::
MatrixBase
<
MatrixXd
>
&
,
const
double
&
))
&
is_approx
<
MatrixXd
,
MatrixXd
>
,
bp
::
args
(
"A"
,
"B"
,
"prec"
),
"Returns True if A is approximately equal to B, within the precision determined by prec."
);
bp
::
def
(
"is_approx"
,(
bool
(
*
)(
const
Eigen
::
MatrixBase
<
MatrixXd
>
&
,
const
Eigen
::
MatrixBase
<
MatrixXd
>
&
))
&
is_approx
<
MatrixXd
,
MatrixXd
>
,
bp
::
args
(
"A"
,
"B"
),
"Returns True if A is approximately equal to B."
);
}
exposeDecompositions
();
}
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