Skip to content

Commit bf46263

Browse files
committed
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
1 parent 9d10729 commit bf46263

317 files changed

Lines changed: 1040 additions & 922 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

stan/math/fwd/functor/gradient.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ namespace math {
3737
* @param[out] grad_fx Gradient of function at argument
3838
*/
3939
template <typename T, typename F>
40-
inline void gradient(const F& f, const Eigen::Matrix<T, Eigen::Dynamic, 1>& x, T& fx,
41-
Eigen::Matrix<T, Eigen::Dynamic, 1>& grad_fx) {
40+
inline void gradient(const F& f, const Eigen::Matrix<T, Eigen::Dynamic, 1>& x,
41+
T& fx, Eigen::Matrix<T, Eigen::Dynamic, 1>& grad_fx) {
4242
Eigen::Matrix<fvar<T>, Eigen::Dynamic, 1> x_fvar(x.size());
4343
grad_fx.resize(x.size());
4444
for (int i = 0; i < x.size(); ++i) {

stan/math/fwd/functor/hessian.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ namespace math {
3838
* @param[out] H Hessian of function at argument
3939
*/
4040
template <typename T, typename F>
41-
inline void hessian(const F& f, const Eigen::Matrix<T, Eigen::Dynamic, 1>& x, T& fx,
42-
Eigen::Matrix<T, Eigen::Dynamic, 1>& grad,
43-
Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>& H) {
41+
inline void hessian(const F& f, const Eigen::Matrix<T, Eigen::Dynamic, 1>& x,
42+
T& fx, Eigen::Matrix<T, Eigen::Dynamic, 1>& grad,
43+
Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>& H) {
4444
H.resize(x.size(), x.size());
4545
grad.resize(x.size());
4646
// size 0 separate because nothing to loop over in main body

stan/math/fwd/functor/jacobian.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ namespace math {
99

1010
template <typename T, typename F>
1111
inline void jacobian(const F& f, const Eigen::Matrix<T, Eigen::Dynamic, 1>& x,
12-
Eigen::Matrix<T, Eigen::Dynamic, 1>& fx,
13-
Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>& J) {
12+
Eigen::Matrix<T, Eigen::Dynamic, 1>& fx,
13+
Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic>& J) {
1414
using Eigen::Dynamic;
1515
using Eigen::Matrix;
1616
Matrix<fvar<T>, Dynamic, 1> x_fvar(x.size());

stan/math/mix/functor/hessian_times_vector.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ template <typename T, typename F, typename EigVec,
3939
require_eigen_vector_t<EigVec>* = nullptr,
4040
require_stan_scalar_t<T>* = nullptr>
4141
inline void hessian_times_vector(const F& f,
42-
const Eigen::Matrix<T, Eigen::Dynamic, 1>& x,
43-
const EigVec& v, T& fx,
44-
Eigen::Matrix<T, Eigen::Dynamic, 1>& Hv) {
42+
const Eigen::Matrix<T, Eigen::Dynamic, 1>& x,
43+
const EigVec& v, T& fx,
44+
Eigen::Matrix<T, Eigen::Dynamic, 1>& Hv) {
4545
using Eigen::Matrix;
4646
Matrix<T, Eigen::Dynamic, 1> grad;
4747
Matrix<T, Eigen::Dynamic, Eigen::Dynamic> H;

stan/math/mix/functor/partial_derivative.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ namespace math {
2323
*/
2424
template <typename T, typename F>
2525
inline void partial_derivative(const F& f,
26-
const Eigen::Matrix<T, Eigen::Dynamic, 1>& x, int n,
27-
T& fx, T& dfx_dxn) {
26+
const Eigen::Matrix<T, Eigen::Dynamic, 1>& x,
27+
int n, T& fx, T& dfx_dxn) {
2828
Eigen::Matrix<fvar<T>, Eigen::Dynamic, 1> x_fvar(x.size());
2929
for (int i = 0; i < x.size(); ++i) {
3030
x_fvar(i) = fvar<T>(x(i), i == n);

stan/math/opencl/indexing_rev.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace math {
2020
* @param res adjoint of the result of the indexing operation
2121
*/
2222
inline void indexing_rev(matrix_cl<double>& adj, const matrix_cl<int>& idx,
23-
const matrix_cl<double>& res) {
23+
const matrix_cl<double>& res) {
2424
int local_mem_size
2525
= opencl_context.device()[0].getInfo<CL_DEVICE_LOCAL_MEM_SIZE>();
2626
int preferred_work_groups

stan/math/opencl/kernel_generator/evaluate_into.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ namespace math {
1818
*/
1919
template <typename Derived, typename Scalar, typename... Args>
2020
template <typename T_lhs>
21-
inline void operation_cl<Derived, Scalar, Args...>::evaluate_into(T_lhs& lhs) const {
21+
inline void operation_cl<Derived, Scalar, Args...>::evaluate_into(
22+
T_lhs& lhs) const {
2223
static_assert(
2324
is_kernel_expression<T_lhs>::value,
2425
"operation_cl::evaluate_into: left hand side is not a valid expression!");

stan/math/opencl/kernel_generator/holder_cl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ namespace internal {
8282
*/
8383
template <typename T, std::size_t... Is, typename... Args>
8484
inline auto make_holder_cl_impl_step2(T&& expr, std::index_sequence<Is...>,
85-
const std::tuple<Args*...>& ptrs) {
85+
const std::tuple<Args*...>& ptrs) {
8686
return holder_cl(std::forward<T>(expr), std::get<Is>(ptrs)...);
8787
}
8888

@@ -97,7 +97,7 @@ inline auto make_holder_cl_impl_step2(T&& expr, std::index_sequence<Is...>,
9797
*/
9898
template <typename T, std::size_t... Is, typename... Args>
9999
inline auto make_holder_cl_impl_step1(const T& func, std::index_sequence<Is...>,
100-
Args&&... args) {
100+
Args&&... args) {
101101
std::tuple<std::remove_reference_t<Args>*...> res;
102102
auto ptrs = std::tuple_cat(
103103
holder_handle_element(std::forward<Args>(args), std::get<Is>(res))...);

stan/math/opencl/prim/bernoulli_cdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ template <
2828
require_all_prim_or_rev_kernel_expression_t<T_n_cl, T_prob_cl>* = nullptr,
2929
require_any_not_stan_scalar_t<T_n_cl, T_prob_cl>* = nullptr>
3030
inline return_type_t<T_prob_cl> bernoulli_cdf(const T_n_cl& n,
31-
const T_prob_cl& theta) {
31+
const T_prob_cl& theta) {
3232
static constexpr const char* function = "bernoulli_cdf(OpenCL)";
3333
using T_partials_return = partials_return_t<T_prob_cl>;
3434
using std::isnan;

stan/math/opencl/prim/bernoulli_lccdf.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ template <
2929
require_all_prim_or_rev_kernel_expression_t<T_n_cl, T_prob_cl>* = nullptr,
3030
require_any_not_stan_scalar_t<T_n_cl, T_prob_cl>* = nullptr>
3131
inline return_type_t<T_prob_cl> bernoulli_lccdf(const T_n_cl& n,
32-
const T_prob_cl& theta) {
32+
const T_prob_cl& theta) {
3333
static constexpr const char* function = "bernoulli_lccdf(OpenCL)";
3434
using T_partials_return = partials_return_t<T_prob_cl>;
3535
using std::isnan;

0 commit comments

Comments
 (0)