Skip to content

Commit d453c79

Browse files
committed
[Jenkins] auto-formatting by clang-format version 6.0.1-14 (tags/RELEASE_601/final)
1 parent 09d6e97 commit d453c79

File tree

4 files changed

+16
-20
lines changed

4 files changed

+16
-20
lines changed

stan/math/opencl/kernel_generator/multi_result_kernel.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ class expressions_cl {
219219
*/
220220
explicit expressions_cl(T_expressions&&... expressions)
221221
: expressions_(
222-
T_expressions(std::forward<T_expressions>(expressions))...) {}
222+
T_expressions(std::forward<T_expressions>(expressions))...) {}
223223

224224
private:
225225
std::tuple<T_expressions...> expressions_;
@@ -372,7 +372,8 @@ class results_cl {
372372
*/
373373
template <typename... T_expressions, size_t... Is>
374374
void assignment(const expressions_cl<T_expressions...>& exprs,
375-
std::index_sequence<Is...>) {;
375+
std::index_sequence<Is...>) {
376+
;
376377
assignment_impl(std::tuple_cat(make_assignment_pair(
377378
as_operation_cl(std::get<Is>(results_)),
378379
as_operation_cl(std::get<Is>(exprs.expressions_)))...));
@@ -486,8 +487,8 @@ class results_cl {
486487
* @return an empty tuple
487488
*/
488489
template <typename Scal>
489-
static std::tuple<> make_assignment_pair(
490-
check_cl_<scalar_<Scal>>& result, scalar_<char> expression) {
490+
static std::tuple<> make_assignment_pair(check_cl_<scalar_<Scal>>& result,
491+
scalar_<char> expression) {
491492
if (!expression.a_) {
492493
std::stringstream s;
493494
s << result.function_ << ": " << result.err_variable_ << " = "

stan/math/opencl/kernel_generator/operation_cl.hpp

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,16 +132,14 @@ class operation_cl : public operation_cl_base {
132132
int cols = derived().cols();
133133
const char* function = "operation_cl.eval()";
134134
if (rows < 0) {
135-
invalid_argument(
136-
function, "Number of rows of expression", rows,
137-
" must be nonnegative, but is ",
138-
" (broadcasted expressions can not be evaluated)");
135+
invalid_argument(function, "Number of rows of expression", rows,
136+
" must be nonnegative, but is ",
137+
" (broadcasted expressions can not be evaluated)");
139138
}
140139
if (cols < 0) {
141-
invalid_argument(
142-
function, "Number of columns of expression", cols,
143-
" must be nonnegative, but is ",
144-
" (broadcasted expressions can not be evaluated)");
140+
invalid_argument(function, "Number of columns of expression", cols,
141+
" must be nonnegative, but is ",
142+
" (broadcasted expressions can not be evaluated)");
145143
}
146144
matrix_cl<Scalar> res(rows, cols, derived().view());
147145
if (res.size() > 0) {
@@ -228,7 +226,7 @@ class operation_cl : public operation_cl_base {
228226
generated, name_gen, row_index_name_arg, col_index_name_arg,
229227
view_handled
230228
&& std::tuple_element_t<
231-
Is, typename Deriv::view_transitivity>::value)...};
229+
Is, typename Deriv::view_transitivity>::value)...};
232230
});
233231
res = std::accumulate(args_parts.begin(), args_parts.end(),
234232
kernel_parts{});

stan/math/opencl/kernel_generator/operation_cl_lhs.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,7 @@ class operation_cl_lhs : public operation_cl<Derived, Scalar, Args...>,
8282
template <typename T_expression,
8383
typename
8484
= require_all_kernel_expressions_and_none_scalar_t<T_expression>>
85-
operation_cl_lhs<Derived, Scalar, Args...>& operator=(
86-
T_expression&& rhs) {
85+
operation_cl_lhs<Derived, Scalar, Args...>& operator=(T_expression&& rhs) {
8786
auto expression
8887
= as_operation_cl(std::forward<T_expression>(rhs)).derived();
8988
int this_rows = derived().rows();

test/unit/math/opencl/kernel_generator/check_cl_test.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,12 @@ TEST(KernelGenerator, check_cl_error) {
2121
}
2222

2323
TEST(KernelGenerator, check_cl_scalar_check_only_pass) {
24-
EXPECT_NO_THROW(
25-
stan::math::check_cl("test", "m1", 3, "positive") = 3 > 0);
24+
EXPECT_NO_THROW(stan::math::check_cl("test", "m1", 3, "positive") = 3 > 0);
2625
}
2726

2827
TEST(KernelGenerator, check_cl_scalar_check_only_throw) {
29-
EXPECT_THROW(
30-
stan::math::check_cl("test", "m1", 0, "positive") = 0 > 0,
31-
std::domain_error);
28+
EXPECT_THROW(stan::math::check_cl("test", "m1", 0, "positive") = 0 > 0,
29+
std::domain_error);
3230
}
3331

3432
TEST(KernelGenerator, check_cl_check_only_pass) {

0 commit comments

Comments
 (0)