Skip to content

Commit b0815c4

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

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

test/unit/math/rev/fun/to_soa_sparse_matrix_test.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,40 @@
66
#include <vector>
77

88
TEST_F(AgradRev, to_soa_sparse_matrix_matrix_double) {
9+
using stan::math::to_soa_sparse_matrix;
910
using stan::math::var;
1011
using stan::math::var_value;
11-
using stan::math::to_soa_sparse_matrix;
1212
std::vector<int> v{0, 1, 2, 0, 1};
1313
std::vector<int> u{0, 1, 2, 3, 4, 5};
1414
Eigen::VectorXd w(5);
1515
int m = 5;
1616
int n = 5;
1717
w << 1, 2, 3, 4, 5;
18-
var_value<Eigen::SparseMatrix<double, Eigen::RowMajor>> w_mat_arena =
19-
to_soa_sparse_matrix<Eigen::RowMajor>(m, n, w, u, v);
18+
var_value<Eigen::SparseMatrix<double, Eigen::RowMajor>> w_mat_arena
19+
= to_soa_sparse_matrix<Eigen::RowMajor>(m, n, w, u, v);
2020
for (int i = 0; i < 5; ++i) {
2121
EXPECT_EQ(w_mat_arena.val().valuePtr()[i], w(i));
2222
}
2323
}
2424

25-
2625
TEST_F(AgradRev, to_soa_sparse_matrix_matrix_var) {
26+
using stan::math::to_soa_sparse_matrix;
2727
using stan::math::var;
2828
using stan::math::var_value;
29-
using stan::math::to_soa_sparse_matrix;
3029
std::vector<int> v{0, 1, 2, 0, 1};
3130
std::vector<int> u{0, 1, 2, 3, 4, 5};
3231
Eigen::VectorXd w(5);
3332
int m = 5;
3433
int n = 5;
3534
w << 1, 2, 3, 4, 5;
3635
Eigen::Matrix<var, -1, 1> w_var(w);
37-
var_value<Eigen::SparseMatrix<double, Eigen::RowMajor>> w_mat_arena =
38-
to_soa_sparse_matrix<Eigen::RowMajor>(m, n, w_var, u, v);
36+
var_value<Eigen::SparseMatrix<double, Eigen::RowMajor>> w_mat_arena
37+
= to_soa_sparse_matrix<Eigen::RowMajor>(m, n, w_var, u, v);
3938
for (int i = 0; i < 5; ++i) {
4039
EXPECT_EQ(w_mat_arena.val().valuePtr()[i], w.val()(i));
4140
}
4241
}
4342

44-
4543
TEST_F(AgradRev, to_soa_sparse_matrix_var_matrix) {
4644
using stan::math::to_soa_sparse_matrix;
4745
using stan::math::var;

0 commit comments

Comments
 (0)