Skip to content

Commit 34899e7

Browse files
committed
update fixed point test.
1 parent 34169a6 commit 34899e7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/unit/math/rev/functor/algebra_solver_fp_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,8 @@ TEST_F(FP_direct_prod_func_test, algebra_solver_fp) {
494494
Eigen::Matrix<var, -1, 1> yp(to_var(y));
495495
Eigen::Matrix<var, -1, 1> xv_fp = algebra_solver_fp(
496496
f, x, yp, x_r, x_i, u_scale, f_scale, 0, f_tol, max_num_steps); // NOLINT
497-
Eigen::Matrix<var, -1, 1> xv_newton = solve_newton_tol(
498-
f_newton, x, 1.e-3, f_tol, max_num_steps, 0, yp, x_r, x_i); // NOLINT
497+
Eigen::Matrix<var, -1, 1> xv_newton = algebra_solver_newton(
498+
f_newton, x, yp, x_r, x_i, 0, 1.e-3, f_tol, max_num_steps); // NOLINT
499499
for (int i = 0; i < n; ++i) {
500500
EXPECT_FLOAT_EQ(value_of(xv_fp(i)), value_of(xv_newton(i)));
501501
}

0 commit comments

Comments
 (0)