Skip to content

Commit a32e9de

Browse files
authored
Merge pull request #346 from jcarpent/devel
Clean use of namespace bp::
2 parents a7d6cca + a655afa commit a32e9de

29 files changed

+11
-66
lines changed

include/eigenpy/angle-axis.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
namespace eigenpy {
1111

12-
namespace bp = boost::python;
13-
1412
template <typename AngleAxis>
1513
class AngleAxisVisitor;
1614

include/eigenpy/copyable.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99

1010
namespace eigenpy {
1111

12-
namespace bp = boost::python;
13-
1412
///
1513
/// \brief Add the Python method copy to allow a copy of this by calling the
1614
/// copy constructor.

include/eigenpy/decompositions/EigenSolver.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ struct EigenSolverVisitor
2323

2424
template <class PyClass>
2525
void visit(PyClass& cl) const {
26-
namespace bp = boost::python;
2726
cl.def(bp::init<>("Default constructor"))
2827
.def(bp::init<Eigen::DenseIndex>(
2928
bp::arg("size"), "Default constructor with memory preallocation"))
@@ -76,7 +75,6 @@ struct EigenSolverVisitor
7675
}
7776

7877
static void expose(const std::string& name) {
79-
namespace bp = boost::python;
8078
bp::class_<Solver>(name.c_str(), bp::no_init).def(EigenSolverVisitor());
8179
}
8280

include/eigenpy/decompositions/LDLT.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ struct LDLTSolverVisitor
2828

2929
template <class PyClass>
3030
void visit(PyClass &cl) const {
31-
namespace bp = boost::python;
3231
cl.def(bp::init<>(bp::arg("self"), "Default constructor"))
3332
.def(bp::init<Eigen::DenseIndex>(
3433
bp::args("self", "size"),
@@ -106,7 +105,6 @@ struct LDLTSolverVisitor
106105
}
107106

108107
static void expose(const std::string &name) {
109-
namespace bp = boost::python;
110108
bp::class_<Solver>(
111109
name.c_str(),
112110
"Robust Cholesky decomposition of a matrix with pivoting.\n\n"

include/eigenpy/decompositions/LLT.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ struct LLTSolverVisitor
2828

2929
template <class PyClass>
3030
void visit(PyClass &cl) const {
31-
namespace bp = boost::python;
3231
cl.def(bp::init<>(bp::arg("self"), "Default constructor"))
3332
.def(bp::init<Eigen::DenseIndex>(
3433
bp::args("self", "size"),
@@ -99,7 +98,6 @@ struct LLTSolverVisitor
9998
}
10099

101100
static void expose(const std::string &name) {
102-
namespace bp = boost::python;
103101
bp::class_<Solver>(
104102
name.c_str(),
105103
"Standard Cholesky decomposition (LL^T) of a matrix and associated "

include/eigenpy/decompositions/SelfAdjointEigenSolver.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ struct SelfAdjointEigenSolverVisitor
2424

2525
template <class PyClass>
2626
void visit(PyClass& cl) const {
27-
namespace bp = boost::python;
2827
cl.def(bp::init<>(bp::arg("self"), "Default constructor"))
2928
.def(bp::init<Eigen::DenseIndex>(
3029
bp::args("self", "size"),
@@ -84,7 +83,6 @@ struct SelfAdjointEigenSolverVisitor
8483
}
8584

8685
static void expose(const std::string& name) {
87-
namespace bp = boost::python;
8886
bp::class_<Solver>(name.c_str(), bp::no_init)
8987
.def(SelfAdjointEigenSolverVisitor());
9088
}

include/eigenpy/decompositions/minres.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ struct IterativeSolverBaseVisitor
2828

2929
template <class PyClass>
3030
void visit(PyClass& cl) const {
31-
namespace bp = boost::python;
3231
cl.def("analyzePattern",
3332
(Solver & (Solver::*)(const Eigen::EigenBase<MatrixType>& matrix)) &
3433
Solver::analyzePattern,
@@ -137,7 +136,6 @@ struct MINRESSolverVisitor
137136

138137
template <class PyClass>
139138
void visit(PyClass& cl) const {
140-
namespace bp = boost::python;
141139
cl.def(bp::init<>(bp::arg("self"), "Default constructor"))
142140
.def(bp::init<MatrixType>(
143141
bp::args("self", "matrix"),
@@ -155,7 +153,6 @@ struct MINRESSolverVisitor
155153
}
156154

157155
static void expose(const std::string& name) {
158-
namespace bp = boost::python;
159156
bp::class_<Solver, boost::noncopyable>(
160157
name.c_str(),
161158
"A minimal residual solver for sparse symmetric problems.\n"

include/eigenpy/eigen-to-python.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ struct to_python_indirect<
5959
} // namespace boost
6060

6161
namespace eigenpy {
62-
namespace bp = boost::python;
6362

6463
template <typename MatType, typename _Scalar>
6564
struct EigenToPy {

include/eigenpy/eigenpy.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "eigenpy/fwd.hpp"
1010
#include "eigenpy/deprecated.hpp"
1111
#include "eigenpy/eigen-typedef.hpp"
12+
#include "eigenpy/expose.hpp"
1213

1314
#define ENABLE_SPECIFIC_MATRIX_TYPE(TYPE) \
1415
::eigenpy::enableEigenPySpecific<TYPE>();

0 commit comments

Comments
 (0)