Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ci:
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.8.6
rev: v0.11.4
hooks:
- id: ruff
args:
Expand All @@ -23,7 +23,7 @@ repos:
- id: toml-sort-fix
exclude: pixi.toml
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.6
rev: v20.1.0
hooks:
- id: clang-format
args:
Expand Down
3 changes: 2 additions & 1 deletion include/eigenpy/angle-axis.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ class AngleAxisVisitor : public bp::def_visitor<AngleAxisVisitor<AngleAxis> > {
bp::make_function((Vector3 & (AngleAxis::*)()) & AngleAxis::axis,
bp::return_internal_reference<>()),
&AngleAxisVisitor::setAxis, "The rotation axis.")
.add_property("angle", (Scalar(AngleAxis::*)() const)&AngleAxis::angle,
.add_property("angle",
(Scalar (AngleAxis::*)() const) & AngleAxis::angle,
&AngleAxisVisitor::setAngle, "The rotation angle.")

/* --- Methods --- */
Expand Down
2 changes: 1 addition & 1 deletion include/eigenpy/decompositions/LLT.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ struct LLTSolverVisitor
bp::args("self", "vector", "sigma"), bp::return_self<>())
#else
.def("rankUpdate",
(Solver(Solver::*)(
(Solver (Solver::*)(
const VectorXs &,
const RealScalar &))&Solver::template rankUpdate<VectorXs>,
bp::args("self", "vector", "sigma"))
Expand Down
6 changes: 3 additions & 3 deletions include/eigenpy/decompositions/PermutationMatrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ struct PermutationMatrixVisitor
bp::return_self<>())

.def("setIdentity",
(void(PermutationMatrix::*)()) & PermutationMatrix::setIdentity,
(void (PermutationMatrix::*)())&PermutationMatrix::setIdentity,
bp::arg("self"),
"Sets self to be the identity permutation matrix.")
.def("setIdentity",
(void(PermutationMatrix::*)(Eigen::DenseIndex)) &
PermutationMatrix::setIdentity,
(void (PermutationMatrix::*)(
Eigen::DenseIndex))&PermutationMatrix::setIdentity,
bp::args("self", "size"),
"Sets self to be the identity permutation matrix of given size.")

Expand Down
2 changes: 1 addition & 1 deletion include/eigenpy/std-vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ struct reference_arg_from_python<std::vector<Type, Allocator> &>

result_type operator()() const {
return ::boost::python::detail::void_ptr_to_reference(result(),
(result_type(*)())0);
(result_type (*)())0);
}

~reference_arg_from_python() {
Expand Down
12 changes: 6 additions & 6 deletions unittest/complex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,18 @@ BOOST_PYTHON_MODULE(complex) {
ascomplex<long double, Eigen::Dynamic, Eigen::Dynamic, 0>);

bp::def("real",
(MatrixXf(*)(const Eigen::MatrixBase<MatrixXcf> &))&real<MatrixXcf>);
(MatrixXf (*)(const Eigen::MatrixBase<MatrixXcf> &))&real<MatrixXcf>);
bp::def("real",
(MatrixXd(*)(const Eigen::MatrixBase<MatrixXcd> &))&real<MatrixXcd>);
(MatrixXd (*)(const Eigen::MatrixBase<MatrixXcd> &))&real<MatrixXcd>);
bp::def(
"real",
(MatrixXld(*)(const Eigen::MatrixBase<MatrixXcld> &))&real<MatrixXcld>);
(MatrixXld (*)(const Eigen::MatrixBase<MatrixXcld> &))&real<MatrixXcld>);

bp::def("imag",
(MatrixXf(*)(const Eigen::MatrixBase<MatrixXcf> &))&imag<MatrixXcf>);
(MatrixXf (*)(const Eigen::MatrixBase<MatrixXcf> &))&imag<MatrixXcf>);
bp::def("imag",
(MatrixXd(*)(const Eigen::MatrixBase<MatrixXcd> &))&imag<MatrixXcd>);
(MatrixXd (*)(const Eigen::MatrixBase<MatrixXcd> &))&imag<MatrixXcd>);
bp::def(
"imag",
(MatrixXld(*)(const Eigen::MatrixBase<MatrixXcld> &))&imag<MatrixXcld>);
(MatrixXld (*)(const Eigen::MatrixBase<MatrixXcld> &))&imag<MatrixXcld>);
}
Loading