Skip to content

Commit 27e7995

Browse files
authored
Merge pull request #152 from jcarpent/devel
Fix issues for Windows
2 parents a6af570 + 3607ba2 commit 27e7995

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

python/main.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,7 @@ BOOST_PYTHON_MODULE(eigenpy)
5151
"Returns True if A is approximately equal to B, within the precision determined by prec.");
5252
bp::def("is_approx",(bool (*)(const MatrixXd &, const MatrixXd &))&is_approx<MatrixXd,MatrixXd>,
5353
bp::args("A","B"),
54-
"Returns True if A is approximately equal to B..");
55-
56-
// EXPOSE_IS_APPROX(MatrixXd);
57-
// EXPOSE_IS_APPROX(MatrixXf);
54+
"Returns True if A is approximately equal to B.");
5855
}
5956

6057
exposeDecompositions();

src/decompositions/decompositions.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
#include <boost/python.hpp>
66
#include <Eigen/Core>
77

8+
#include "eigenpy/decompositions/decompositions.hpp"
9+
810
#include "eigenpy/decompositions/EigenSolver.hpp"
911
#include "eigenpy/decompositions/SelfAdjointEigenSolver.hpp"
1012
#include "eigenpy/decompositions/LLT.hpp"
@@ -17,13 +19,12 @@ namespace eigenpy
1719
using namespace Eigen;
1820
namespace bp = boost::python;
1921

20-
EigenSolverVisitor<Eigen::MatrixXd>::expose("EigenSolver");
21-
SelfAdjointEigenSolverVisitor<Eigen::MatrixXd>::expose("SelfAdjointEigenSolver");
22-
LLTSolverVisitor<Eigen::MatrixXd>::expose("LLT");
23-
LDLTSolverVisitor<Eigen::MatrixXd>::expose("LDLT");
22+
EigenSolverVisitor<MatrixXd>::expose("EigenSolver");
23+
SelfAdjointEigenSolverVisitor<MatrixXd>::expose("SelfAdjointEigenSolver");
24+
LLTSolverVisitor<MatrixXd>::expose("LLT");
25+
LDLTSolverVisitor<MatrixXd>::expose("LDLT");
2426

2527
{
26-
using namespace Eigen;
2728
bp::enum_<DecompositionOptions>("DecompositionOptions")
2829
.value("ComputeFullU",ComputeFullU)
2930
.value("ComputeThinU",ComputeThinU)

0 commit comments

Comments
 (0)