Skip to content

Commit

Permalink
fix bug which caused different results in integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
votjakovr committed Jul 9, 2013
1 parent 206a880 commit 55adddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/machine/gp/ExactInferenceMethod.cpp
Expand Up @@ -296,7 +296,7 @@ void CExactInferenceMethod::update_chol()
/* creates views on kernel and cholesky matrix and perform cholesky */
Map<MatrixXd> K(m_ktrtr.matrix, m_ktrtr.num_rows, m_ktrtr.num_cols);
Map<MatrixXd> L(m_L.matrix, m_ktrtr.num_rows, m_ktrtr.num_cols);
LLT<MatrixXd> llt(K*CMath::sq(m_scale)/CMath::sq(sigma)+
LLT<MatrixXd> llt(K*(CMath::sq(m_scale)/CMath::sq(sigma))+
MatrixXd::Identity(m_ktrtr.num_rows, m_ktrtr.num_cols));
L=llt.matrixU();
}
Expand Down

0 comments on commit 55adddc

Please sign in to comment.