Skip to content

Commit

Permalink
[Jenkins] auto-formatting by clang-format version 10.0.0-4ubuntu1
Browse files Browse the repository at this point in the history
  • Loading branch information
stan-buildbot committed Nov 20, 2023
1 parent 9f17333 commit 2773df6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion stan/math/rev/core/arena_matrix.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
namespace stan {
namespace math {


template <typename MatrixType>
class arena_matrix<MatrixType, require_eigen_dense_base_t<MatrixType>>
: public Eigen::Map<MatrixType> {
Expand Down
3 changes: 1 addition & 2 deletions stan/math/rev/core/vari.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -869,8 +869,7 @@ class vari_value<T, require_eigen_sparse_base_t<T>> : public vari_base {
* that its `chain()` method is not called.
*/
template <typename S, require_convertible_t<S&, T>* = nullptr>
vari_value(S&& x, bool stacked)
: adj_(x), val_(std::forward<S>(x)) {
vari_value(S&& x, bool stacked) : adj_(x), val_(std::forward<S>(x)) {
this->set_zero_adjoint();
if (stacked) {
ChainableStack::instance_->var_stack_.push_back(this);
Expand Down
1 change: 0 additions & 1 deletion stan/math/rev/meta/arena_type.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <stan/math/rev/core/chainable_alloc.hpp>
#include <stan/math/rev/core/var_value_fwd_declare.hpp>


namespace stan {

namespace internal {
Expand Down
4 changes: 2 additions & 2 deletions test/unit/math/rev/core/var_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <string>
#include <vector>


namespace stan {
namespace test {
template <typename T, typename S>
Expand Down Expand Up @@ -124,7 +123,8 @@ void ctor_overloads_sparse_matrix(EigenMat&& x) {
inplace_add_var.adj() += test_y;
// adjoints sparsity pattern will be pattern of x and test_y for addition
for (int k = 0; k < x.outerSize(); ++k) {
typename vari_value<eigen_plain>::InnerIterator iz(inplace_add_var.adj(), k);
typename vari_value<eigen_plain>::InnerIterator iz(inplace_add_var.adj(),
k);
for (inner_iterator it(test_y, k); bool(iz) && bool(it); ++iz) {
if (iz.row() == it.row() && iz.col() == it.col()) {
EXPECT_FLOAT_EQ(iz.value() - 1, it.value());
Expand Down

0 comments on commit 2773df6

Please sign in to comment.