Skip to content

Commit

Permalink
[Jenkins] auto-formatting by clang-format version 6.0.0 (tags/google/…
Browse files Browse the repository at this point in the history
…stable/2017-11-14)
  • Loading branch information
stan-buildbot committed Feb 4, 2020
1 parent c2d5024 commit f54c4a0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/unit/math/relative_tolerance.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace test {
* two inexact values to be compared.
*/
class relative_tolerance {
public:
public:
/**
* Construct with default tolerances
*/
Expand All @@ -39,15 +39,15 @@ class relative_tolerance {
double tol() const { return tol_; }
double tol_min() const { return tol_min_; }

relative_tolerance change_tol(double tol) const {
relative_tolerance change_tol(double tol) const {
return relative_tolerance(tol, tol_min_);
}

relative_tolerance change_tol_min(double tol_min) const {
relative_tolerance change_tol_min(double tol_min) const {
return relative_tolerance(tol_, tol_min);
}

relative_tolerance operator *(double a) const {
relative_tolerance operator*(double a) const {
return relative_tolerance(a * tol_, a * tol_min_);
}

Expand Down Expand Up @@ -78,7 +78,8 @@ class relative_tolerance {
using stan::math::fabs;
return std::max(tol_ * 0.5 * (fabs(x) + fabs(y)), tol_min_);
}
private:

private:
/**
* The relative tolerance
*/
Expand Down

0 comments on commit f54c4a0

Please sign in to comment.