Skip to content

Commit b6cdb2a

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 03c7593 commit b6cdb2a

File tree

5 files changed

+22
-21
lines changed

5 files changed

+22
-21
lines changed

include/eigenpy/angle-axis.hpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ class AngleAxisVisitor : public bp::def_visitor<AngleAxisVisitor<AngleAxis> > {
5555
bp::make_function((Vector3 & (AngleAxis::*)()) & AngleAxis::axis,
5656
bp::return_internal_reference<>()),
5757
&AngleAxisVisitor::setAxis, "The rotation axis.")
58-
.add_property("angle",
59-
(Scalar(AngleAxis::*)() const) & AngleAxis::angle,
58+
.add_property("angle", (Scalar(AngleAxis::*)() const)&AngleAxis::angle,
6059
&AngleAxisVisitor::setAngle, "The rotation angle.")
6160

6261
/* --- Methods --- */

include/eigenpy/decompositions/LLT.hpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ struct LLTSolverVisitor
5454
bp::args("self", "vector", "sigma"), bp::return_self<>())
5555
#else
5656
.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>,
5960
bp::args("self", "vector", "sigma"))
6061
#endif
6162

include/eigenpy/fwd.hpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@
4343
EIGENPY_PRAGMA_WARNING(Deprecated : the_message)
4444
#define EIGENPY_PRAGMA_DEPRECATED_HEADER(old_header, new_header) \
4545
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.)
4948
#elif defined(WIN32)
5049
#define EIGENPY_PRAGMA(x) __pragma(#x)
5150
#define EIGENPY_PRAGMA_MESSAGE(the_message) \

python/main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ void exposeIsApprox() {
3232

3333
bp::def("is_approx",
3434
(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,
3737
(bp::arg("A"), bp::arg("B"), bp::arg("prec") = dummy_precision),
3838
"Returns True if A is approximately equal to B, within the "
3939
"precision determined by prec.");

unittest/complex.cpp

+14-12
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,19 @@ BOOST_PYTHON_MODULE(complex) {
6969
bp::def("ascomplex",
7070
ascomplex<long double, Eigen::Dynamic, Eigen::Dynamic, 0>);
7171

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>);
7879

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>);
8587
}

0 commit comments

Comments
 (0)