Skip to content

Commit fa4d8c6

Browse files
authored
Merge pull request #327 from jcarpent/devel
Fix potential issues related to Boost.Python >= 1.80
2 parents 6066a36 + 18c6769 commit fa4d8c6

File tree

8 files changed

+23
-21
lines changed

8 files changed

+23
-21
lines changed

.github/workflows/macos-linux-conda.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
activate-environment: eigenpy
2525
auto-update-conda: true
2626
environment-file: .github/workflows/conda/environment.yml
27-
python-version: 3.8
27+
python-version: '3.10'
2828

2929
- uses: actions/cache@v2
3030
with:
@@ -36,6 +36,7 @@ jobs:
3636
run: |
3737
conda activate eigenpy
3838
conda install cmake -c main
39+
conda list
3940
4041
- name: Build EigenPy
4142
shell: bash -l {0}

include/eigenpy/angle-axis.hpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,13 @@ class AngleAxisVisitor : public bp::def_visitor<AngleAxisVisitor<AngleAxis> > {
4646
template <class PyClass>
4747
void visit(PyClass& cl) const {
4848
cl.def(bp::init<>(bp::arg("self"), "Default constructor"))
49-
.def(bp::init<Scalar, Vector3>(
50-
(bp::arg("self"), bp::arg("angle"), bp::arg("axis")),
51-
"Initialize from angle and axis."))
52-
.def(bp::init<Matrix3>((bp::arg("self"), bp::arg("R")),
49+
.def(bp::init<Scalar, Vector3>(bp::args("self", "angle", "axis"),
50+
"Initialize from angle and axis."))
51+
.def(bp::init<Matrix3>(bp::args("self", "R"),
5352
"Initialize from a rotation matrix"))
54-
.def(bp::init<Quaternion>((bp::arg("self"), bp::arg("quaternion")),
53+
.def(bp::init<Quaternion>(bp::args("self", "quaternion"),
5554
"Initialize from a quaternion."))
56-
.def(bp::init<AngleAxis>((bp::arg("self"), bp::arg("copy")),
57-
"Copy constructor."))
55+
.def(bp::init<AngleAxis>(bp::args("self", "copy"), "Copy constructor."))
5856

5957
/* --- Properties --- */
6058
.add_property(

include/eigenpy/decompositions/LDLT.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ struct LDLTSolverVisitor
2929
template <class PyClass>
3030
void visit(PyClass &cl) const {
3131
namespace bp = boost::python;
32-
cl.def(bp::init<>("Default constructor"))
32+
cl.def(bp::init<>(bp::arg("self"), "Default constructor"))
3333
.def(bp::init<Eigen::DenseIndex>(
34-
bp::arg("size"), "Default constructor with memory preallocation"))
34+
bp::args("self", "size"),
35+
"Default constructor with memory preallocation"))
3536
.def(bp::init<MatrixType>(
36-
bp::arg("matrix"),
37+
bp::args("self", "matrix"),
3738
"Constructs a LDLT factorization from a given matrix."))
3839

3940
.def("isNegative", &Solver::isNegative, bp::arg("self"),

include/eigenpy/decompositions/LLT.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ struct LLTSolverVisitor
2929
template <class PyClass>
3030
void visit(PyClass &cl) const {
3131
namespace bp = boost::python;
32-
cl.def(bp::init<>("Default constructor"))
32+
cl.def(bp::init<>(bp::arg("self"), "Default constructor"))
3333
.def(bp::init<Eigen::DenseIndex>(
34-
bp::arg("size"), "Default constructor with memory preallocation"))
34+
bp::args("self", "size"),
35+
"Default constructor with memory preallocation"))
3536
.def(bp::init<MatrixType>(
36-
bp::arg("matrix"),
37+
bp::args("self", "matrix"),
3738
"Constructs a LLT factorization from a given matrix."))
3839

3940
.def("matrixL", &matrixL, bp::arg("self"),

include/eigenpy/decompositions/SelfAdjointEigenSolver.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ struct SelfAdjointEigenSolverVisitor
2525
template <class PyClass>
2626
void visit(PyClass& cl) const {
2727
namespace bp = boost::python;
28-
cl.def(bp::init<>("Default constructor"))
28+
cl.def(bp::init<>(bp::arg("self"), "Default constructor"))
2929
.def(bp::init<Eigen::DenseIndex>(
30-
bp::arg("size"), "Default constructor with memory preallocation"))
30+
bp::args("self", "size"),
31+
"Default constructor with memory preallocation"))
3132
.def(bp::init<MatrixType, bp::optional<int> >(
32-
bp::args("matrix", "options"),
33+
bp::args("self", "matrix", "options"),
3334
"Computes eigendecomposition of given matrix"))
3435

3536
.def("eigenvalues", &Solver::eigenvalues, bp::arg("self"),

include/eigenpy/decompositions/minres.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ struct MINRESSolverVisitor
138138
template <class PyClass>
139139
void visit(PyClass& cl) const {
140140
namespace bp = boost::python;
141-
cl.def(bp::init<>("Default constructor"))
141+
cl.def(bp::init<>(bp::arg("self"), "Default constructor"))
142142
.def(bp::init<MatrixType>(
143-
bp::arg("matrix"),
143+
bp::args("self", "matrix"),
144144
"Initialize the solver with matrix A for further Ax=b solving.\n"
145145
"This constructor is a shortcut for the default constructor "
146146
"followed by a call to compute()."))

include/eigenpy/solvers/BasicPreconditioners.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ struct PreconditionerBaseVisitor
3434
template <class PyClass>
3535
void visit(PyClass& cl) const {
3636
cl.def(bp::init<>("Default constructor"))
37-
.def(bp::init<MatrixType>(bp::arg("A"),
37+
.def(bp::init<MatrixType>(bp::args("self", "A"),
3838
"Initialize the preconditioner with matrix A "
3939
"for further Az=b solving."))
4040
#if EIGEN_VERSION_AT_LEAST(3, 3, 0)

0 commit comments

Comments
 (0)