File tree 5 files changed +22
-21
lines changed
5 files changed +22
-21
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,7 @@ class AngleAxisVisitor : public bp::def_visitor<AngleAxisVisitor<AngleAxis> > {
55
55
bp::make_function ((Vector3 & (AngleAxis::*)()) & AngleAxis::axis,
56
56
bp::return_internal_reference<>()),
57
57
&AngleAxisVisitor::setAxis, " The rotation axis." )
58
- .add_property (" angle" ,
59
- (Scalar (AngleAxis::*)() const ) & AngleAxis::angle,
58
+ .add_property (" angle" , (Scalar (AngleAxis::*)() const )&AngleAxis::angle,
60
59
&AngleAxisVisitor::setAngle, " The rotation angle." )
61
60
62
61
/* --- Methods --- */
Original file line number Diff line number Diff line change @@ -54,8 +54,9 @@ struct LLTSolverVisitor
54
54
bp::args (" self" , " vector" , " sigma" ), bp::return_self<>())
55
55
#else
56
56
.def (" rankUpdate" ,
57
- (Solver (Solver::*)(const VectorXs &, const RealScalar &)) &
58
- Solver::template rankUpdate<VectorXs>,
57
+ (Solver (Solver::*)(
58
+ const VectorXs &,
59
+ const RealScalar &))&Solver::template rankUpdate<VectorXs>,
59
60
bp::args (" self" , " vector" , " sigma" ))
60
61
#endif
61
62
Original file line number Diff line number Diff line change 43
43
EIGENPY_PRAGMA_WARNING (Deprecated : the_message)
44
44
#define EIGENPY_PRAGMA_DEPRECATED_HEADER (old_header, new_header ) \
45
45
EIGENPY_PRAGMA_WARNING ( \
46
- Deprecated header file \
47
- : #old_header has been replaced \
48
- by #new_header.\n Please use #new_header instead of #old_header.)
46
+ Deprecated header file : #old_header has been replaced \
47
+ by #new_header.\n Please use #new_header instead of #old_header.)
49
48
#elif defined(WIN32)
50
49
#define EIGENPY_PRAGMA (x ) __pragma(#x)
51
50
#define EIGENPY_PRAGMA_MESSAGE (the_message ) \
Original file line number Diff line number Diff line change @@ -32,8 +32,8 @@ void exposeIsApprox() {
32
32
33
33
bp::def (" is_approx" ,
34
34
(bool (*)(const Eigen::MatrixBase<MatrixXs> &,
35
- const Eigen::MatrixBase<MatrixXs> &, const RealScalar &)) &
36
- is_approx,
35
+ const Eigen::MatrixBase<MatrixXs> &,
36
+ const RealScalar &))& is_approx,
37
37
(bp::arg (" A" ), bp::arg (" B" ), bp::arg (" prec" ) = dummy_precision),
38
38
" Returns True if A is approximately equal to B, within the "
39
39
" precision determined by prec." );
Original file line number Diff line number Diff line change @@ -69,17 +69,19 @@ BOOST_PYTHON_MODULE(complex) {
69
69
bp::def (" ascomplex" ,
70
70
ascomplex<long double , Eigen::Dynamic, Eigen::Dynamic, 0 >);
71
71
72
- bp::def (" real" , (MatrixXf (*)(const Eigen::MatrixBase<MatrixXcf> &)) &
73
- real<MatrixXcf>);
74
- bp::def (" real" , (MatrixXd (*)(const Eigen::MatrixBase<MatrixXcd> &)) &
75
- real<MatrixXcd>);
76
- bp::def (" real" , (MatrixXld (*)(const Eigen::MatrixBase<MatrixXcld> &)) &
77
- real<MatrixXcld>);
72
+ bp::def (" real" ,
73
+ (MatrixXf (*)(const Eigen::MatrixBase<MatrixXcf> &))&real<MatrixXcf>);
74
+ bp::def (" real" ,
75
+ (MatrixXd (*)(const Eigen::MatrixBase<MatrixXcd> &))&real<MatrixXcd>);
76
+ bp::def (
77
+ " real" ,
78
+ (MatrixXld (*)(const Eigen::MatrixBase<MatrixXcld> &))&real<MatrixXcld>);
78
79
79
- bp::def (" imag" , (MatrixXf (*)(const Eigen::MatrixBase<MatrixXcf> &)) &
80
- imag<MatrixXcf>);
81
- bp::def (" imag" , (MatrixXd (*)(const Eigen::MatrixBase<MatrixXcd> &)) &
82
- imag<MatrixXcd>);
83
- bp::def (" imag" , (MatrixXld (*)(const Eigen::MatrixBase<MatrixXcld> &)) &
84
- imag<MatrixXcld>);
80
+ bp::def (" imag" ,
81
+ (MatrixXf (*)(const Eigen::MatrixBase<MatrixXcf> &))&imag<MatrixXcf>);
82
+ bp::def (" imag" ,
83
+ (MatrixXd (*)(const Eigen::MatrixBase<MatrixXcd> &))&imag<MatrixXcd>);
84
+ bp::def (
85
+ " imag" ,
86
+ (MatrixXld (*)(const Eigen::MatrixBase<MatrixXcld> &))&imag<MatrixXcld>);
85
87
}
You can’t perform that action at this time.
0 commit comments