Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
eigenpy
Commits
503d7d6e
Unverified
Commit
503d7d6e
authored
Apr 02, 2021
by
Justin Carpentier
Committed by
GitHub
Apr 02, 2021
Browse files
Merge pull request #226 from nim65s/topic/warnings
Fix warnings
parents
31955816
080f9098
Pipeline
#13855
passed with stage
in 14 minutes and 29 seconds
Changes
23
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
503d7d6e
...
...
@@ -192,12 +192,6 @@ ELSE()
TARGET_COMPILE_OPTIONS
(
${
PROJECT_NAME
}
PRIVATE $<$<CXX_COMPILER_ID:MSVC>:-bigobj>
)
ENDIF
()
IF
(
Boost_VERSION GREATER 107299
)
# Silence a warning about a deprecated use of boost bind by boost python
# at least fo boost 1.73 to 1.75
ADD_DEFINITIONS
(
-DBOOST_BIND_GLOBAL_PLACEHOLDERS
)
ENDIF
()
TARGET_LINK_BOOST_PYTHON
(
${
PROJECT_NAME
}
PUBLIC
)
INSTALL
(
TARGETS
${
PROJECT_NAME
}
EXPORT
${
TARGETS_EXPORT_NAME
}
...
...
include/eigenpy/computation-info.hpp
View file @
503d7d6e
...
...
@@ -5,10 +5,7 @@
#ifndef __eigenpy_decompositions_computation_info_hpp__
#define __eigenpy_decompositions_computation_info_hpp__
#include
<Eigen/Core>
#include
<boost/python.hpp>
#include
"eigenpy/config.hpp"
#include
"eigenpy/fwd.hpp"
namespace
eigenpy
{
...
...
include/eigenpy/eigenpy.hpp
View file @
503d7d6e
...
...
@@ -8,7 +8,6 @@
#include
"eigenpy/fwd.hpp"
#include
"eigenpy/deprecated.hpp"
#include
"eigenpy/config.hpp"
#include
"eigenpy/eigen-typedef.hpp"
#define ENABLE_SPECIFIC_MATRIX_TYPE(TYPE) \
...
...
include/eigenpy/exception.hpp
View file @
503d7d6e
...
...
@@ -3,12 +3,13 @@
* Copyright 2018-2019, INRIA
*/
#include
<boost/python.hpp>
#ifndef __eigenpy_exception_hpp__
#define __eigenpy_exception_hpp__
#include
<exception>
#include
<string>
#ifndef __eigenpy_exception_hpp__
#define __eigenpy_exception_hpp__
#include
"eigenpy/fwd.hpp"
namespace
eigenpy
{
...
...
include/eigenpy/fwd.hpp
View file @
503d7d6e
...
...
@@ -7,13 +7,21 @@
#include
"eigenpy/config.hpp"
// Silence a warning about a deprecated use of boost bind by boost python
// at least fo boost 1.73 to 1.75
// ref. https://github.com/stack-of-tasks/tsid/issues/128
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
#include
<boost/python.hpp>
#include
<
Eigen/Core
>
#include
<
boost/python/scope.hpp
>
#define NO_IMPORT_ARRAY
#include
"eigenpy/numpy.hpp"
#undef NO_IMPORT_ARRAY
#undef BOOST_BIND_GLOBAL_PLACEHOLDERS
#include
<Eigen/Core>
#if EIGEN_VERSION_AT_LEAST(3,2,90)
#define EIGENPY_DEFAULT_ALIGNMENT_VALUE Eigen::Aligned16
#else
...
...
include/eigenpy/geometry-conversion.hpp
View file @
503d7d6e
...
...
@@ -6,9 +6,8 @@
#ifndef __eigenpy_geometry_conversion_hpp__
#define __eigenpy_geometry_conversion_hpp__
#include
<E
igen
/Core>
#include
"e
igen
py/fwd.hpp"
#include
<Eigen/Geometry>
#include
<boost/python.hpp>
namespace
eigenpy
{
...
...
include/eigenpy/memory.hpp
View file @
503d7d6e
...
...
@@ -6,7 +6,7 @@
#ifndef __eigenpy_memory_hpp__
#define __eigenpy_memory_hpp__
#include
<boost/python
.hpp
>
#include
"eigenpy/fwd
.hpp
"
/**
* This section contains a convenience MACRO which allows an easy specialization of
...
...
include/eigenpy/numpy.hpp
View file @
503d7d6e
...
...
@@ -5,8 +5,7 @@
#ifndef __eigenpy_numpy_hpp__
#define __eigenpy_numpy_hpp__
#include
<boost/python.hpp>
#include
"eigenpy/config.hpp"
#include
"eigenpy/fwd.hpp"
#ifndef PY_ARRAY_UNIQUE_SYMBOL
#define PY_ARRAY_UNIQUE_SYMBOL EIGENPY_ARRAY_API
...
...
include/eigenpy/registration.hpp
View file @
503d7d6e
...
...
@@ -6,8 +6,7 @@
#ifndef __eigenpy_registration_hpp__
#define __eigenpy_registration_hpp__
#include
<boost/python.hpp>
#include
<boost/python/scope.hpp>
#include
"eigenpy/fwd.hpp"
namespace
eigenpy
{
...
...
include/eigenpy/solvers/BFGSPreconditioners.hpp
View file @
503d7d6e
...
...
@@ -17,8 +17,7 @@
#ifndef __eigenpy_bfgs_preconditioners_hpp__
#define __eigenpy_bfgs_preconditioners_hpp__
#include
<boost/python.hpp>
#include
<Eigen/Core>
#include
"eigenpy/fwd.hpp"
#include
<Eigen/IterativeLinearSolvers>
#include
"eigenpy/solvers/BasicPreconditioners.hpp"
...
...
include/eigenpy/solvers/BasicPreconditioners.hpp
View file @
503d7d6e
...
...
@@ -17,8 +17,7 @@
#ifndef __eigenpy_basic_preconditioners_hpp__
#define __eigenpy_basic_preconditioners_hpp__
#include
<boost/python.hpp>
#include
<Eigen/Core>
#include
"eigenpy/fwd.hpp"
#include
<Eigen/IterativeLinearSolvers>
namespace
eigenpy
...
...
include/eigenpy/solvers/ConjugateGradient.hpp
View file @
503d7d6e
...
...
@@ -17,7 +17,7 @@
#ifndef __eigenpy_conjugate_gradient_hpp__
#define __eigenpy_conjugate_gradient_hpp__
#include
<boost/python
.hpp
>
#include
"eigenpy/fwd
.hpp
"
#include
<Eigen/IterativeLinearSolvers>
#include
"eigenpy/solvers/IterativeSolverBase.hpp"
...
...
include/eigenpy/solvers/IterativeSolverBase.hpp
View file @
503d7d6e
...
...
@@ -17,9 +17,7 @@
#ifndef __eigenpy_iterative_solver_base_hpp__
#define __eigenpy_iterative_solver_base_hpp__
#include
<boost/python.hpp>
#include
<Eigen/Core>
#include
"eigenpy/fwd.hpp"
#include
"eigenpy/solvers/SparseSolverBase.hpp"
namespace
eigenpy
...
...
include/eigenpy/solvers/LeastSquaresConjugateGradient.hpp
View file @
503d7d6e
...
...
@@ -17,7 +17,7 @@
#ifndef __eigenpy_least_square_conjugate_gradient_hpp__
#define __eigenpy_least_square_conjugate_gradient_hpp__
#include
<boost/python
.hpp
>
#include
"eigenpy/fwd
.hpp
"
#include
<Eigen/IterativeLinearSolvers>
#include
"eigenpy/solvers/IterativeSolverBase.hpp"
...
...
include/eigenpy/solvers/SparseSolverBase.hpp
View file @
503d7d6e
...
...
@@ -17,8 +17,7 @@
#ifndef __eigenpy_sparse_solver_base_hpp__
#define __eigenpy_sparse_solver_base_hpp__
#include
<boost/python.hpp>
#include
<Eigen/Core>
#include
"eigenpy/fwd.hpp"
namespace
eigenpy
{
...
...
src/decompositions/decompositions.cpp
View file @
503d7d6e
...
...
@@ -2,8 +2,7 @@
* Copyright 2020 INRIA
*/
#include
<boost/python.hpp>
#include
<Eigen/Core>
#include
"eigenpy/fwd.hpp"
#include
"eigenpy/decompositions/decompositions.hpp"
...
...
unittest/CMakeLists.txt
View file @
503d7d6e
...
...
@@ -7,9 +7,9 @@ MACRO(ADD_LIB_UNIT_TEST test)
CREATE_CTEST_BUILD_TESTS_TARGET
()
IF
(
BUILD_TESTING
)
ADD_LIBRARY
(
${
test
}
SHARED
${
test
}
)
ADD_LIBRARY
(
${
test
}
SHARED
"
${
test
}
.cpp"
)
ELSE
(
BUILD_TESTING
)
ADD_LIBRARY
(
${
test
}
SHARED EXCLUDE_FROM_ALL
${
test
}
)
ADD_LIBRARY
(
${
test
}
SHARED EXCLUDE_FROM_ALL
"
${
test
}
.cpp"
)
ENDIF
(
BUILD_TESTING
)
TARGET_LINK_LIBRARIES
(
${
test
}
PUBLIC
${
PROJECT_NAME
}
)
...
...
unittest/alpha/bnpy.cpp
View file @
503d7d6e
/* Simple test using the boost::numpy interface: return an array and a matrix. */
#include
<boost/python
.hpp
>
#include
"eigenpy/fwd
.hpp
"
#include
"boost/numpy.hpp"
namespace
bp
=
boost
::
python
;
...
...
unittest/alpha/eigen.cpp
View file @
503d7d6e
#include
<Eigen/Core>
#include
<boost/python.hpp>
#include
"eigenpy/fwd.hpp"
#include
<boost/numpy.hpp>
...
...
unittest/alpha/eigenc.cpp
View file @
503d7d6e
#include
<Eigen/Core>
#include
<boost/python.hpp>
#include
"eigenpy/fwd.hpp"
#include
<numpy/arrayobject.h>
namespace
boopy
...
...
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment