diff --git a/stan/math/rev/core/arena_matrix.hpp b/stan/math/rev/core/arena_matrix.hpp index d9912eb9adc..a932b3e6570 100644 --- a/stan/math/rev/core/arena_matrix.hpp +++ b/stan/math/rev/core/arena_matrix.hpp @@ -10,7 +10,6 @@ namespace stan { namespace math { - template class arena_matrix> : public Eigen::Map { diff --git a/stan/math/rev/core/vari.hpp b/stan/math/rev/core/vari.hpp index f3caf6f925a..80da3b0f46d 100644 --- a/stan/math/rev/core/vari.hpp +++ b/stan/math/rev/core/vari.hpp @@ -869,8 +869,7 @@ class vari_value> : public vari_base { * that its `chain()` method is not called. */ template * = nullptr> - vari_value(S&& x, bool stacked) - : adj_(x), val_(std::forward(x)) { + vari_value(S&& x, bool stacked) : adj_(x), val_(std::forward(x)) { this->set_zero_adjoint(); if (stacked) { ChainableStack::instance_->var_stack_.push_back(this); diff --git a/stan/math/rev/meta/arena_type.hpp b/stan/math/rev/meta/arena_type.hpp index a7871313146..095fd53f86f 100644 --- a/stan/math/rev/meta/arena_type.hpp +++ b/stan/math/rev/meta/arena_type.hpp @@ -8,7 +8,6 @@ #include #include - namespace stan { namespace internal { diff --git a/test/unit/math/rev/core/var_test.cpp b/test/unit/math/rev/core/var_test.cpp index 0a56f963453..341302b1093 100644 --- a/test/unit/math/rev/core/var_test.cpp +++ b/test/unit/math/rev/core/var_test.cpp @@ -9,7 +9,6 @@ #include #include - namespace stan { namespace test { template @@ -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::InnerIterator iz(inplace_add_var.adj(), k); + typename vari_value::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());