Verified Commit 503e5cc6 authored by Silvio Traversaro's avatar Silvio Traversaro Committed by Justin Carpentier
Browse files

Avoid to use not unary operator

parent 299532ed
......@@ -412,7 +412,7 @@ namespace pinocchio
PINOCCHIO_CHECK_INPUT_ARGUMENT(data.mass[rootSubtreeId] > 0., "The mass of the subtree is not positive.");
const Scalar mass_inv_subtree = Scalar(1)/data.mass[rootSubtreeId];
typename Data::Vector3 & com_subtree = data.com[rootSubtreeId];
if(not computeSubtreeComs)
if(!computeSubtreeComs)
com_subtree *= mass_inv_subtree;
if(rootSubtreeId == 0)
......
......@@ -19,7 +19,7 @@ BOOST_AUTO_TEST_CASE(test_matrix_matrix_product)
const Eigen::DenseIndex m = 20, n = 100;
MatrixXd M1(MatrixXd::Ones(m,n)), M2(MatrixXd::Ones(n,m));
MatrixMatrixProduct<MatrixXd,MatrixXd>::type res = M1 * M2;
BOOST_CHECK(not res.eval().isZero());
BOOST_CHECK(!res.eval().isZero());
}
BOOST_AUTO_TEST_CASE(test_scalar_matrix_product)
......
......@@ -28,8 +28,8 @@ BOOST_AUTO_TEST_CASE(test_version)
BOOST_CHECK(checkVersionAtLeast(0,0,0));
BOOST_CHECK(checkVersionAtLeast(PINOCCHIO_MAJOR_VERSION,PINOCCHIO_MINOR_VERSION,PINOCCHIO_PATCH_VERSION));
BOOST_CHECK(not checkVersionAtLeast(PINOCCHIO_MAJOR_VERSION,PINOCCHIO_MINOR_VERSION,PINOCCHIO_PATCH_VERSION+1));
BOOST_CHECK(not checkVersionAtLeast(99,0,0));
BOOST_CHECK(!checkVersionAtLeast(PINOCCHIO_MAJOR_VERSION,PINOCCHIO_MINOR_VERSION,PINOCCHIO_PATCH_VERSION+1));
BOOST_CHECK(!checkVersionAtLeast(99,0,0));
}
BOOST_AUTO_TEST_SUITE_END()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment