clang-tidy fix mathlib headers and format

This commit is contained in:
Daniel Agar
2017-06-02 19:35:18 -04:00
parent ac4a706da0
commit e112161a04
14 changed files with 438 additions and 279 deletions
+3 -3
View File
@@ -114,19 +114,19 @@ public:
{
Block::updateParams();
if (getChildren().getHead() != NULL) { updateChildParams(); }
if (getChildren().getHead() != nullptr) { updateChildParams(); }
}
virtual void updateSubscriptions()
{
Block::updateSubscriptions();
if (getChildren().getHead() != NULL) { updateChildSubscriptions(); }
if (getChildren().getHead() != nullptr) { updateChildSubscriptions(); }
}
virtual void updatePublications()
{
Block::updatePublications();
if (getChildren().getHead() != NULL) { updateChildPublications(); }
if (getChildren().getHead() != nullptr) { updateChildPublications(); }
}
protected:
// methods
+2 -2
View File
@@ -544,10 +544,10 @@ public:
S = V1 * V1 + V2 * V2;
} while (S >= 1 || fabsf(S) < 1e-8f);
X = V1 * float(sqrt(-2 * float(log(S)) / S));
X = V1 * float(sqrtf(-2 * float(logf(S)) / S));
} else {
X = V2 * float(sqrt(-2 * float(log(S)) / S));
X = V2 * float(sqrtf(-2 * float(logf(S)) / S));
}
phase = 1 - phase;