Skip to content

Commit 49d3583

Browse files
committed
Revert "fix left instance access by method"
This reverts commit 0bf46b0.
1 parent ace8424 commit 49d3583

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/unit/math/rev/mat/functor/adj_jac_apply_test.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,17 +1647,17 @@ struct SinCosFunctor {
16471647
Eigen::VectorXd out(N_);
16481648

16491649
if (needs_adj[0]) {
1650-
x1_mem_ = stan::math::ChainableStack::instance_->memalloc_
1651-
.alloc_array<double>(N_);
1650+
x1_mem_ = stan::math::ChainableStack::instance()
1651+
.memalloc_.alloc_array<double>(N_);
16521652
std::copy(x1.data(), x1.data() + N_, x1_mem_);
16531653
}
16541654

16551655
EXPECT_FALSE(needs_adj[1]);
16561656
EXPECT_FALSE(needs_adj[2]);
16571657

16581658
if (needs_adj[3]) {
1659-
x4_mem_ = stan::math::ChainableStack::instance_->memalloc_
1660-
.alloc_array<double>(N_);
1659+
x4_mem_ = stan::math::ChainableStack::instance()
1660+
.memalloc_.alloc_array<double>(N_);
16611661
std::copy(x4.data(), x4.data() + N_, x4_mem_);
16621662
}
16631663

@@ -1890,8 +1890,8 @@ struct SinCosFunctor2 {
18901890
Eigen::VectorXd out(N_);
18911891

18921892
if (needs_adj[0]) {
1893-
x1_mem_ = stan::math::ChainableStack::instance_->memalloc_
1894-
.alloc_array<double>(N_);
1893+
x1_mem_ = stan::math::ChainableStack::instance()
1894+
.memalloc_.alloc_array<double>(N_);
18951895
std::copy(x1.data(), x1.data() + N_, x1_mem_);
18961896
}
18971897

@@ -2101,8 +2101,8 @@ struct SinCosFunctor3 {
21012101
Eigen::VectorXd out(N_);
21022102

21032103
if (needs_adj[1]) {
2104-
x1_mem_ = stan::math::ChainableStack::instance_->memalloc_
2105-
.alloc_array<double>(N_);
2104+
x1_mem_ = stan::math::ChainableStack::instance()
2105+
.memalloc_.alloc_array<double>(N_);
21062106
std::copy(x1.data(), x1.data() + N_, x1_mem_);
21072107
}
21082108

0 commit comments

Comments
 (0)