Skip to content

Commit 8e9402d

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

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/RBDyn/Jacobian.cpp

+8-9
Original file line numberDiff line numberDiff line change
@@ -721,16 +721,16 @@ void Jacobian::sTranslateJacobian(const Eigen::MatrixXd & jac,
721721
if(jac.cols() != jac_.cols() || jac.rows() != jac_.rows())
722722
{
723723
std::ostringstream str;
724-
str << "jac matrix size mismatch: expected size (" << jac_.rows() << " x " << jac_.cols() << ")"
725-
<< " gived (" << jac.rows() << " x " << jac.cols() << ")";
724+
str << "jac matrix size mismatch: expected size (" << jac_.rows() << " x " << jac_.cols() << ")" << " gived ("
725+
<< jac.rows() << " x " << jac.cols() << ")";
726726
throw std::domain_error(str.str());
727727
}
728728

729729
if(res.cols() != jac_.cols() || res.rows() != jac_.rows())
730730
{
731731
std::ostringstream str;
732-
str << "res matrix size mismatch: expected size (" << jac_.rows() << " x " << jac_.cols() << ")"
733-
<< " gived (" << res.rows() << " x " << res.cols() << ")";
732+
str << "res matrix size mismatch: expected size (" << jac_.rows() << " x " << jac_.cols() << ")" << " gived ("
733+
<< res.rows() << " x " << res.cols() << ")";
734734
throw std::domain_error(str.str());
735735
}
736736

@@ -748,17 +748,16 @@ void Jacobian::sFullJacobian(const MultiBody & mb, const Eigen::MatrixXd & jac,
748748
if(jac.cols() != jac_.cols() || jac.rows() != jac_.rows())
749749
{
750750
std::ostringstream str;
751-
str << "jac matrix size mismatch: expected size (" << jac_.rows() << " x " << jac_.cols() << ")"
752-
<< " gived (" << jac.rows() << " x " << jac.cols() << ")";
751+
str << "jac matrix size mismatch: expected size (" << jac_.rows() << " x " << jac_.cols() << ")" << " gived ("
752+
<< jac.rows() << " x " << jac.cols() << ")";
753753
throw std::domain_error(str.str());
754754
}
755755

756756
if(res.cols() != mb.nrDof() || res.rows() != 6)
757757
{
758758
std::ostringstream str;
759-
str << "res matrix size mismatch: expected size (" << mb.nrDof() << " x "
760-
<< "6 )"
761-
<< " gived (" << res.rows() << " x " << res.cols() << ")";
759+
str << "res matrix size mismatch: expected size (" << mb.nrDof() << " x " << "6 )" << " gived (" << res.rows()
760+
<< " x " << res.cols() << ")";
762761
throw std::domain_error(str.str());
763762
}
764763

0 commit comments

Comments
 (0)