Skip to content

Commit d7b8e9e

Browse files
author
Yi Zhang
committed
Merge branch 'bugfix_issue_2615' of https://github.com/stan-dev/math into bugfix_issue_2615
2 parents ae96b7b + e16f230 commit d7b8e9e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

stan/math/prim/fun/matrix_exp_2x2.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ matrix_exp_2x2(const EigMat& A) {
5151
if (B.hasNaN()) {
5252
return matrix_exp_pade(A);
5353
} else {
54-
return B / delta;
54+
return B / delta;
5555
}
5656
}
5757

test/unit/math/prim/fun/matrix_exp_2x2_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ TEST(MathMatrixPrimMat, matrix_exp_2x2_2x2_2) {
2424
TEST(MathMatrixPrimMat, matrix_exp_2x2_2x2_overflow) {
2525
// example from issue https://github.com/stan-dev/math/issues/2615
2626
Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic> m1(2, 2), m2(2, 2);
27-
m1 << -3.3228,0.533302,1.2242,-4.04844;
27+
m1 << -3.3228, 0.533302, 1.2242, -4.04844;
2828
double t = 800.0;
2929
m2 << 0.0, 0.0, 0.0, 0.0;
3030
EXPECT_MATRIX_FLOAT_EQ(m2, stan::math::matrix_exp_2x2(m1 * t));

0 commit comments

Comments
 (0)