Skip to content

Commit 47cf922

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent bf25cdd commit 47cf922

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

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

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ TEST(ToMatrixRowVector, answers) {
206206
// [[T]] -> Matrix
207207
inline void test_to_matrix_2darray_answers(int m, int n) {
208208
using stan::math::to_matrix;
209-
std::vector<std::vector<double> > vec(m, std::vector<double>(n));
210-
std::vector<std::vector<int> > vec_int(m, std::vector<int>(n));
209+
std::vector<std::vector<double>> vec(m, std::vector<double>(n));
210+
std::vector<std::vector<int>> vec_int(m, std::vector<int>(n));
211211
// Any vec (0, C) will become (0, 0)
212212
if (m == 0)
213213
n = 0;
@@ -284,10 +284,10 @@ TEST(ToMatrixVectorArray, preservesScalarType) {
284284
vecs[1] << 3, 4;
285285

286286
auto result = to_matrix(vecs);
287-
static_assert(std::is_same<decltype(result),
288-
Eigen::Matrix<int, Eigen::Dynamic,
289-
Eigen::Dynamic>>::value,
290-
"to_matrix should preserve the vector scalar type");
287+
static_assert(
288+
std::is_same<decltype(result),
289+
Eigen::Matrix<int, Eigen::Dynamic, Eigen::Dynamic>>::value,
290+
"to_matrix should preserve the vector scalar type");
291291
EXPECT_EQ(1, result(0, 0));
292292
EXPECT_EQ(2, result(1, 0));
293293
EXPECT_EQ(3, result(0, 1));
@@ -332,8 +332,7 @@ TEST(ToMatrixRowVectorArray, empty) {
332332
EXPECT_EQ(3, zero_cols_result.rows());
333333
EXPECT_EQ(0, zero_cols_result.cols());
334334

335-
std::vector<row_vector_d> round_trip
336-
= to_row_vector_array(zero_cols_result);
335+
std::vector<row_vector_d> round_trip = to_row_vector_array(zero_cols_result);
337336
ASSERT_EQ(zero_cols.size(), round_trip.size());
338337
for (size_t i = 0; i < zero_cols.size(); ++i) {
339338
EXPECT_MATRIX_FLOAT_EQ(zero_cols[i], round_trip[i]);

0 commit comments

Comments
 (0)