Skip to content

Commit 04124da

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent f748825 commit 04124da

File tree

1 file changed

+41
-24
lines changed

1 file changed

+41
-24
lines changed

stan/math/rev/fun/csr_matrix_times_vector.hpp

Lines changed: 41 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,18 @@ namespace math {
1414
namespace internal {
1515
/**
1616
* `vari` for csr_matrix_times_vector
17-
* @note `csr_matrix_times_vector` uses the old inheritance
18-
* style to set up the reverse pass because of a linking
17+
* @note `csr_matrix_times_vector` uses the old inheritance
18+
* style to set up the reverse pass because of a linking
1919
* issue on windows when using flto.
20-
*
21-
* @tparam Result_ Either a type inheriting from `Eigen::DenseBase` with scalar type `var` or a `var<T>` where `T` inherits from `Eigen::DenseBase`
22-
* @tparam WMat_ Either a type inheriting from `Eigen::DenseBase` with scalar type `var` or `double`. Or a `var<T>` where `T` inherits from `Eigen::SparseBase`
23-
* @tparam B_ Either a type inheriting from `Eigen::DenseBase` with scalar type `var` or `double`. Or a `var<T>` where `T` inherits from `Eigen::DenseBase`
24-
*
20+
*
21+
* @tparam Result_ Either a type inheriting from `Eigen::DenseBase` with scalar
22+
* type `var` or a `var<T>` where `T` inherits from `Eigen::DenseBase`
23+
* @tparam WMat_ Either a type inheriting from `Eigen::DenseBase` with scalar
24+
* type `var` or `double`. Or a `var<T>` where `T` inherits from
25+
* `Eigen::SparseBase`
26+
* @tparam B_ Either a type inheriting from `Eigen::DenseBase` with scalar type
27+
* `var` or `double`. Or a `var<T>` where `T` inherits from `Eigen::DenseBase`
28+
*
2529
*/
2630
template <typename Result_, typename WMat_, typename B_>
2731
struct csr_adjoint : public vari {
@@ -40,9 +44,12 @@ struct csr_adjoint : public vari {
4044

4145
/**
4246
* Overload for calculating adjoints of `w_mat` and `b`
43-
* @tparam Result Either a type inheriting from `Eigen::DenseBase` with scalar type `var` or a `var<T>` where `T` inherits from `Eigen::DenseBase`
44-
* @tparam WMat Either a type inheriting from `Eigen::DenseBase` with scalar type `var`. Or a `var<T>` where `T` inherits from `Eigen::SparseBase`
45-
* @tparam B Either a type inheriting from `Eigen::DenseBase` with scalar type `var`. Or a `var<T>` where `T` inherits from `Eigen::DenseBase`
47+
* @tparam Result Either a type inheriting from `Eigen::DenseBase` with scalar
48+
* type `var` or a `var<T>` where `T` inherits from `Eigen::DenseBase`
49+
* @tparam WMat Either a type inheriting from `Eigen::DenseBase` with scalar
50+
* type `var`. Or a `var<T>` where `T` inherits from `Eigen::SparseBase`
51+
* @tparam B Either a type inheriting from `Eigen::DenseBase` with scalar type
52+
* `var`. Or a `var<T>` where `T` inherits from `Eigen::DenseBase`
4653
* @param res The vector result of the forward pass calculation
4754
* @param w_mat A sparse matrix
4855
* @param b A vector
@@ -57,9 +64,12 @@ struct csr_adjoint : public vari {
5764

5865
/**
5966
* Overload for calculating adjoints of `w_mat`
60-
* @tparam Result Either a type inheriting from `Eigen::DenseBase` with scalar type `var` or a `var<T>` where `T` inherits from `Eigen::DenseBase`
61-
* @tparam WMat Either a type inheriting from `Eigen::DenseBase` with scalar type `var`. Or a `var<T>` where `T` inherits from `Eigen::SparseBase`
62-
* @tparam B Either a type inheriting from `Eigen::DenseBase` with scalar type `double`
67+
* @tparam Result Either a type inheriting from `Eigen::DenseBase` with scalar
68+
* type `var` or a `var<T>` where `T` inherits from `Eigen::DenseBase`
69+
* @tparam WMat Either a type inheriting from `Eigen::DenseBase` with scalar
70+
* type `var`. Or a `var<T>` where `T` inherits from `Eigen::SparseBase`
71+
* @tparam B Either a type inheriting from `Eigen::DenseBase` with scalar type
72+
* `double`
6373
* @param res The vector result of the forward pass calculation
6474
* @param w_mat A sparse matrix
6575
* @param b A vector
@@ -73,9 +83,12 @@ struct csr_adjoint : public vari {
7383

7484
/**
7585
* Overload for calculating adjoints of `b`
76-
* @tparam Result Either a type inheriting from `Eigen::DenseBase` with scalar type `var` or a `var<T>` where `T` inherits from `Eigen::DenseBase`
77-
* @tparam WMat Either a type inheriting from `Eigen::DenseBase` with scalar type `double`
78-
* @tparam B Either a type inheriting from `Eigen::DenseBase` with scalar type `var` or a `var<T>` where `T` inherits from `Eigen::DenseBase`
86+
* @tparam Result Either a type inheriting from `Eigen::DenseBase` with scalar
87+
* type `var` or a `var<T>` where `T` inherits from `Eigen::DenseBase`
88+
* @tparam WMat Either a type inheriting from `Eigen::DenseBase` with scalar
89+
* type `double`
90+
* @tparam B Either a type inheriting from `Eigen::DenseBase` with scalar type
91+
* `var` or a `var<T>` where `T` inherits from `Eigen::DenseBase`
7992
* @param res The vector result of the forward pass calculation
8093
* @param w_mat A sparse matrix
8194
* @param b A vector
@@ -90,19 +103,23 @@ struct csr_adjoint : public vari {
90103

91104
/**
92105
* Helper function to construct the csr_adjoint struct.
93-
* @tparam Result_ Either a type inheriting from `Eigen::DenseBase` with scalar type `var` or a `var<T>` where `T` inherits from `Eigen::DenseBase`
94-
* @tparam WMat_ Either a type inheriting from `Eigen::DenseBase` with scalar type `var` or `double`. Or a `var<T>` where `T` inherits from `Eigen::SparseBase`
95-
* @tparam B_ Either a type inheriting from `Eigen::DenseBase` with scalar type `var` or `double`. Or a `var<T>` where `T` inherits from `Eigen::DenseBase`
96-
*
106+
* @tparam Result_ Either a type inheriting from `Eigen::DenseBase` with scalar
107+
* type `var` or a `var<T>` where `T` inherits from `Eigen::DenseBase`
108+
* @tparam WMat_ Either a type inheriting from `Eigen::DenseBase` with scalar
109+
* type `var` or `double`. Or a `var<T>` where `T` inherits from
110+
* `Eigen::SparseBase`
111+
* @tparam B_ Either a type inheriting from `Eigen::DenseBase` with scalar type
112+
* `var` or `double`. Or a `var<T>` where `T` inherits from `Eigen::DenseBase`
113+
*
97114
* @param res The vector result of the forward pass calculation
98115
* @param w_mat A sparse matrix
99-
* @param b A vector
116+
* @param b A vector
100117
*/
101118
template <typename Result_, typename WMat_, typename B_>
102119
inline void make_csr_adjoint(Result_&& res, WMat_&& w_mat, B_&& b) {
103-
new csr_adjoint<std::decay_t<Result_>, std::decay_t<WMat_>, std::decay_t<B_>>(std::forward<Result_>(res),
104-
std::forward<WMat_>(w_mat),
105-
std::forward<B_>(b));
120+
new csr_adjoint<std::decay_t<Result_>, std::decay_t<WMat_>, std::decay_t<B_>>(
121+
std::forward<Result_>(res), std::forward<WMat_>(w_mat),
122+
std::forward<B_>(b));
106123
return;
107124
}
108125
} // namespace internal

0 commit comments

Comments
 (0)