AllowRotation and size_t

This commit is contained in:
Aik-Siong Koh
2024-01-14 21:40:33 -07:00
committed by PaddleStroke
parent fe99ad2593
commit 85557e1fa4
285 changed files with 1854 additions and 1116 deletions

View File

@@ -168,9 +168,9 @@ void Joint::fillPosICJacob(SpMatDsptr mat)
constraintsDo([&](std::shared_ptr<Constraint> con) { con->fillPosICJacob(mat); });
}
void Joint::removeRedundantConstraints(std::shared_ptr<std::vector<int>> redundantEqnNos)
void Joint::removeRedundantConstraints(std::shared_ptr<std::vector<size_t>> redundantEqnNos)
{
for (int i = 0; i < (int)constraints->size(); i++)
for (size_t i = 0; i < constraints->size(); i++)
{
auto& constraint = constraints->at(i);
if (std::find(redundantEqnNos->begin(), redundantEqnNos->end(), constraint->iG) != redundantEqnNos->end()) {
@@ -183,7 +183,7 @@ void Joint::removeRedundantConstraints(std::shared_ptr<std::vector<int>> redunda
void Joint::reactivateRedundantConstraints()
{
for (int i = 0; i < (int)constraints->size(); i++)
for (size_t i = 0; i < constraints->size(); i++)
{
auto& con = constraints->at(i);
if (con->isRedundant()) {