Skip to content

Commit dbe4416

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

File tree

4 files changed

+11
-15
lines changed

4 files changed

+11
-15
lines changed

stan/math/prim/fun/simplex_column_free.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ namespace math {
1010

1111
/**
1212
* Return an unconstrained matrix that when transformed produces
13-
* the specified columnwise simplex matrix. It applies to a simplex of dimensionality
14-
* (N, K) and produces an unconstrained vector of dimensionality (N - 1, K).
13+
* the specified columnwise simplex matrix. It applies to a simplex of
14+
* dimensionality (N, K) and produces an unconstrained vector of dimensionality
15+
* (N - 1, K).
1516
*
1617
* @tparam Mat type of the Matrix
1718
* @param y Columnwise simplex matrix input of dimensionality (N, K)
@@ -44,6 +45,4 @@ inline auto simplex_column_free(const T& y) {
4445
} // namespace math
4546
} // namespace stan
4647

47-
48-
4948
#endif

stan/math/prim/fun/simplex_row_free.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,4 @@ inline auto simplex_row_free(const T& y) {
4444
} // namespace math
4545
} // namespace stan
4646

47-
48-
4947
#endif

test/unit/math/prim/fun/simplex_column_constrain_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ TEST(prob_transform, col_simplex_constrain_free) {
3636
x(i) = static_cast<double>(i);
3737
}
3838
double lp = 0;
39-
Matrix<double, Dynamic, Dynamic> x_test
40-
= stan::math::simplex_column_free(stan::math::simplex_column_constrain<false>(x, lp));
39+
Matrix<double, Dynamic, Dynamic> x_test = stan::math::simplex_column_free(
40+
stan::math::simplex_column_constrain<false>(x, lp));
4141
EXPECT_MATRIX_NEAR(x, x_test, 1e-9);
4242

43-
Matrix<double, Dynamic, Dynamic> x_lp_test
44-
= stan::math::simplex_column_free(stan::math::simplex_column_constrain<true>(x, lp));
43+
Matrix<double, Dynamic, Dynamic> x_lp_test = stan::math::simplex_column_free(
44+
stan::math::simplex_column_constrain<true>(x, lp));
4545
EXPECT_MATRIX_NEAR(x, x_lp_test, 1e-9);
4646
}

test/unit/math/prim/fun/simplex_row_constrain_test.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ TEST(prob_transform, row_simplex_rt0) {
2828
EXPECT_MATRIX_EQ(x_lp_test, x_res);
2929
}
3030

31-
3231
TEST(prob_transform, row_simplex_constrain_free) {
3332
using Eigen::Dynamic;
3433
using Eigen::Matrix;
@@ -37,11 +36,11 @@ TEST(prob_transform, row_simplex_constrain_free) {
3736
x(i) = static_cast<double>(i);
3837
}
3938
double lp = 0;
40-
Matrix<double, Dynamic, Dynamic> x_test
41-
= stan::math::simplex_row_free(stan::math::simplex_row_constrain<false>(x, lp));
39+
Matrix<double, Dynamic, Dynamic> x_test = stan::math::simplex_row_free(
40+
stan::math::simplex_row_constrain<false>(x, lp));
4241
EXPECT_MATRIX_NEAR(x, x_test, 1e-9);
4342

44-
Matrix<double, Dynamic, Dynamic> x_lp_test
45-
= stan::math::simplex_row_free(stan::math::simplex_row_constrain<true>(x, lp));
43+
Matrix<double, Dynamic, Dynamic> x_lp_test = stan::math::simplex_row_free(
44+
stan::math::simplex_row_constrain<true>(x, lp));
4645
EXPECT_MATRIX_NEAR(x, x_lp_test, 1e-9);
4746
}

0 commit comments

Comments
 (0)