Skip to content

Commit b3f2484

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent f7161f5 commit b3f2484

4 files changed

Lines changed: 28 additions & 36 deletions

File tree

stan/math/fwd/core/operator_addition.hpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ inline fvar<T> operator+(const fvar<T>& x1, double x2) {
5656
* @return sum of arguments
5757
*/
5858
template <typename T>
59-
inline std::complex<stan::math::fvar<T>>
60-
operator+(const std::complex<stan::math::fvar<T>>& x,
61-
const std::complex<stan::math::fvar<T>>& y) {
59+
inline std::complex<stan::math::fvar<T>> operator+(
60+
const std::complex<stan::math::fvar<T>>& x,
61+
const std::complex<stan::math::fvar<T>>& y) {
6262
return internal::complex_add(x, y);
6363
}
6464

@@ -72,9 +72,8 @@ operator+(const std::complex<stan::math::fvar<T>>& x,
7272
* @return sum of arguments
7373
*/
7474
template <typename T>
75-
inline std::complex<stan::math::fvar<T>>
76-
operator+(const std::complex<double>& x,
77-
const std::complex<stan::math::fvar<T>>& y) {
75+
inline std::complex<stan::math::fvar<T>> operator+(
76+
const std::complex<double>& x, const std::complex<stan::math::fvar<T>>& y) {
7877
return internal::complex_add(x, y);
7978
}
8079

@@ -88,9 +87,8 @@ operator+(const std::complex<double>& x,
8887
* @return sum of arguments
8988
*/
9089
template <typename T>
91-
inline std::complex<stan::math::fvar<T>>
92-
operator+(const std::complex<stan::math::fvar<T>>& x,
93-
const std::complex<double>& y) {
90+
inline std::complex<stan::math::fvar<T>> operator+(
91+
const std::complex<stan::math::fvar<T>>& x, const std::complex<double>& y) {
9492
return internal::complex_add(x, y);
9593
}
9694

stan/math/fwd/core/operator_subtraction.hpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ inline fvar<T> operator-(const fvar<T>& x1, double x2) {
5656
* @return subtraction of arguments
5757
*/
5858
template <typename T>
59-
inline std::complex<stan::math::fvar<T>>
60-
operator-(const std::complex<stan::math::fvar<T>>& x,
61-
const std::complex<stan::math::fvar<T>>& y) {
59+
inline std::complex<stan::math::fvar<T>> operator-(
60+
const std::complex<stan::math::fvar<T>>& x,
61+
const std::complex<stan::math::fvar<T>>& y) {
6262
return internal::complex_subtract(x, y);
6363
}
6464

@@ -72,9 +72,8 @@ operator-(const std::complex<stan::math::fvar<T>>& x,
7272
* @return subtraction of arguments
7373
*/
7474
template <typename T>
75-
inline std::complex<stan::math::fvar<T>>
76-
operator-(const std::complex<double>& x,
77-
const std::complex<stan::math::fvar<T>>& y) {
75+
inline std::complex<stan::math::fvar<T>> operator-(
76+
const std::complex<double>& x, const std::complex<stan::math::fvar<T>>& y) {
7877
return internal::complex_subtract(x, y);
7978
}
8079

@@ -88,9 +87,8 @@ operator-(const std::complex<double>& x,
8887
* @return subtraction of arguments
8988
*/
9089
template <typename T>
91-
inline std::complex<stan::math::fvar<T>>
92-
operator-(const std::complex<stan::math::fvar<T>>& x,
93-
const std::complex<double>& y) {
90+
inline std::complex<stan::math::fvar<T>> operator-(
91+
const std::complex<stan::math::fvar<T>>& x, const std::complex<double>& y) {
9492
return internal::complex_subtract(x, y);
9593
}
9694

stan/math/rev/core/operator_addition.hpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,9 @@ inline auto operator+(const VarMat1& a, const VarMat2& b) {
287287
* @param[in] y second argument
288288
* @return sum of arguments
289289
*/
290-
inline std::complex<stan::math::var>
291-
operator+(const std::complex<stan::math::var>& x,
292-
const std::complex<stan::math::var>& y) {
290+
inline std::complex<stan::math::var> operator+(
291+
const std::complex<stan::math::var>& x,
292+
const std::complex<stan::math::var>& y) {
293293
return internal::complex_add(x, y);
294294
}
295295

@@ -301,9 +301,8 @@ operator+(const std::complex<stan::math::var>& x,
301301
* @param[in] y second argument
302302
* @return sum of arguments
303303
*/
304-
inline std::complex<stan::math::var>
305-
operator+(const std::complex<double>& x,
306-
const std::complex<stan::math::var>& y) {
304+
inline std::complex<stan::math::var> operator+(
305+
const std::complex<double>& x, const std::complex<stan::math::var>& y) {
307306
return internal::complex_add(x, y);
308307
}
309308

@@ -315,9 +314,8 @@ operator+(const std::complex<double>& x,
315314
* @param[in] y second argument
316315
* @return sum of arguments
317316
*/
318-
inline std::complex<stan::math::var>
319-
operator+(const std::complex<stan::math::var>& x,
320-
const std::complex<double>& y) {
317+
inline std::complex<stan::math::var> operator+(
318+
const std::complex<stan::math::var>& x, const std::complex<double>& y) {
321319
return internal::complex_add(x, y);
322320
}
323321

stan/math/rev/core/operator_subtraction.hpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,9 @@ inline auto operator-(const VarMat1& a, const VarMat2& b) {
319319
* @param[in] y second argument
320320
* @return subtraction of arguments
321321
*/
322-
inline std::complex<stan::math::var>
323-
operator-(const std::complex<stan::math::var>& x,
324-
const std::complex<stan::math::var>& y) {
322+
inline std::complex<stan::math::var> operator-(
323+
const std::complex<stan::math::var>& x,
324+
const std::complex<stan::math::var>& y) {
325325
return internal::complex_subtract(x, y);
326326
}
327327

@@ -333,9 +333,8 @@ operator-(const std::complex<stan::math::var>& x,
333333
* @param[in] y second argument
334334
* @return subtraction of arguments
335335
*/
336-
inline std::complex<stan::math::var>
337-
operator-(const std::complex<double>& x,
338-
const std::complex<stan::math::var>& y) {
336+
inline std::complex<stan::math::var> operator-(
337+
const std::complex<double>& x, const std::complex<stan::math::var>& y) {
339338
return internal::complex_subtract(x, y);
340339
}
341340

@@ -347,9 +346,8 @@ operator-(const std::complex<double>& x,
347346
* @param[in] y second argument
348347
* @return subtraction of arguments
349348
*/
350-
inline std::complex<stan::math::var>
351-
operator-(const std::complex<stan::math::var>& x,
352-
const std::complex<double>& y) {
349+
inline std::complex<stan::math::var> operator-(
350+
const std::complex<stan::math::var>& x, const std::complex<double>& y) {
353351
return internal::complex_subtract(x, y);
354352
}
355353

0 commit comments

Comments
 (0)