Skip to content

Commit b7102d7

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

2 files changed

Lines changed: 14 additions & 19 deletions

File tree

stan/math/fwd/core/operator_multiplication.hpp

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ inline fvar<T> operator*(const fvar<T>& x, double y) {
4646
return fvar<T>(x.val_ * y, x.d_ * y);
4747
}
4848

49-
5049
/**
5150
* Return the product of the two complex fvar<T> arguments.
5251
*
@@ -56,9 +55,9 @@ inline fvar<T> operator*(const fvar<T>& x, double y) {
5655
* @return product of arguments
5756
*/
5857
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) {
58+
inline std::complex<stan::math::fvar<T>> operator*(
59+
const std::complex<stan::math::fvar<T>>& x,
60+
const std::complex<stan::math::fvar<T>>& y) {
6261
return internal::complex_multiply(x, y);
6362
}
6463

@@ -72,9 +71,8 @@ operator*(const std::complex<stan::math::fvar<T>>& x,
7271
* @return product of arguments
7372
*/
7473
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) {
74+
inline std::complex<stan::math::fvar<T>> operator*(
75+
const std::complex<double>& x, const std::complex<stan::math::fvar<T>>& y) {
7876
return internal::complex_multiply(x, y);
7977
}
8078

@@ -88,9 +86,8 @@ operator*(const std::complex<double>& x,
8886
* @return product of arguments
8987
*/
9088
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) {
89+
inline std::complex<stan::math::fvar<T>> operator*(
90+
const std::complex<stan::math::fvar<T>>& x, const std::complex<double>& y) {
9491
return internal::complex_multiply(x, y);
9592
}
9693

stan/math/rev/core/operator_multiplication.hpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ inline var operator*(Arith a, const var& b) {
120120
* @param[in] y second argument
121121
* @return product of arguments
122122
*/
123-
inline std::complex<stan::math::var>
124-
operator*(const std::complex<stan::math::var>& x,
125-
const std::complex<stan::math::var>& y) {
123+
inline std::complex<stan::math::var> operator*(
124+
const std::complex<stan::math::var>& x,
125+
const std::complex<stan::math::var>& y) {
126126
return internal::complex_multiply(x, y);
127127
}
128128

@@ -134,9 +134,8 @@ operator*(const std::complex<stan::math::var>& x,
134134
* @param[in] y second argument
135135
* @return product of arguments
136136
*/
137-
inline std::complex<stan::math::var>
138-
operator*(const std::complex<double>& x,
139-
const std::complex<stan::math::var>& y) {
137+
inline std::complex<stan::math::var> operator*(
138+
const std::complex<double>& x, const std::complex<stan::math::var>& y) {
140139
return internal::complex_multiply(x, y);
141140
}
142141

@@ -148,9 +147,8 @@ operator*(const std::complex<double>& x,
148147
* @param[in] y second argument
149148
* @return product of arguments
150149
*/
151-
inline std::complex<stan::math::var>
152-
operator*(const std::complex<stan::math::var>& x,
153-
const std::complex<double>& y) {
150+
inline std::complex<stan::math::var> operator*(
151+
const std::complex<stan::math::var>& x, const std::complex<double>& y) {
154152
return internal::complex_multiply(x, y);
155153
}
156154

0 commit comments

Comments
 (0)