Skip to content

Commit

Permalink
* fix bug in CMosek when matrix A passed to wrapper method is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
iglesias committed Aug 16, 2012
1 parent 40f88f7 commit f249e8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shogun/mathematics/Mosek.cpp
Expand Up @@ -238,7 +238,8 @@ MSKrescodee CMosek::wrapper_putaveclist(
for ( index_t i = 0 ; i < A.num_rows-1 ; ++i )
ptre[i] = ptrb[i+1];

ptre[A.num_rows-1] = nnza;
if ( A.num_rows > 0 )
ptre[A.num_rows-1] = nnza;

MSKrescodee ret = MSK_putaveclist(task, MSK_ACC_CON, A.num_rows, sub.vector,
ptrb.vector, ptre.vector,
Expand Down

0 comments on commit f249e8a

Please sign in to comment.