From 8e9402d5e57196b46cb57dfa6af27e00ce353ef8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 8 Apr 2024 20:40:53 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/RBDyn/Jacobian.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/RBDyn/Jacobian.cpp b/src/RBDyn/Jacobian.cpp index 2d9bdd7a..a69f55da 100644 --- a/src/RBDyn/Jacobian.cpp +++ b/src/RBDyn/Jacobian.cpp @@ -721,16 +721,16 @@ void Jacobian::sTranslateJacobian(const Eigen::MatrixXd & jac, if(jac.cols() != jac_.cols() || jac.rows() != jac_.rows()) { std::ostringstream str; - str << "jac matrix size mismatch: expected size (" << jac_.rows() << " x " << jac_.cols() << ")" - << " gived (" << jac.rows() << " x " << jac.cols() << ")"; + str << "jac matrix size mismatch: expected size (" << jac_.rows() << " x " << jac_.cols() << ")" << " gived (" + << jac.rows() << " x " << jac.cols() << ")"; throw std::domain_error(str.str()); } if(res.cols() != jac_.cols() || res.rows() != jac_.rows()) { std::ostringstream str; - str << "res matrix size mismatch: expected size (" << jac_.rows() << " x " << jac_.cols() << ")" - << " gived (" << res.rows() << " x " << res.cols() << ")"; + str << "res matrix size mismatch: expected size (" << jac_.rows() << " x " << jac_.cols() << ")" << " gived (" + << res.rows() << " x " << res.cols() << ")"; throw std::domain_error(str.str()); } @@ -748,17 +748,16 @@ void Jacobian::sFullJacobian(const MultiBody & mb, const Eigen::MatrixXd & jac, if(jac.cols() != jac_.cols() || jac.rows() != jac_.rows()) { std::ostringstream str; - str << "jac matrix size mismatch: expected size (" << jac_.rows() << " x " << jac_.cols() << ")" - << " gived (" << jac.rows() << " x " << jac.cols() << ")"; + str << "jac matrix size mismatch: expected size (" << jac_.rows() << " x " << jac_.cols() << ")" << " gived (" + << jac.rows() << " x " << jac.cols() << ")"; throw std::domain_error(str.str()); } if(res.cols() != mb.nrDof() || res.rows() != 6) { std::ostringstream str; - str << "res matrix size mismatch: expected size (" << mb.nrDof() << " x " - << "6 )" - << " gived (" << res.rows() << " x " << res.cols() << ")"; + str << "res matrix size mismatch: expected size (" << mb.nrDof() << " x " << "6 )" << " gived (" << res.rows() + << " x " << res.cols() << ")"; throw std::domain_error(str.str()); }