Skip to content

Commit

Permalink
Wrong precondition in SGMatrix::compute_eigenvectors found by coverit…
Browse files Browse the repository at this point in the history
…y CID 25834
  • Loading branch information
tklein23 committed Apr 15, 2014
1 parent 0ade927 commit 6f88225
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/lib/SGMatrix.cpp
Expand Up @@ -779,7 +779,7 @@ void SGMatrix<T>::inverse(SGMatrix<float64_t> matrix)
template <class T>
SGVector<float64_t> SGMatrix<T>::compute_eigenvectors(SGMatrix<float64_t> matrix)
{
if (matrix.num_rows!=matrix.num_rows)
if (matrix.num_rows!=matrix.num_cols)
{
SG_SERROR("SGMatrix::compute_eigenvectors(SGMatrix<float64_t>): matrix"
" rows and columns are not equal!\n");
Expand Down

0 comments on commit 6f88225

Please sign in to comment.