scilab: fix scilab_li_matrix wrong checks

This commit is contained in:
Simon Marchetto 2014-03-12 11:36:45 +01:00
commit d4168ef47c
2 changed files with 35 additions and 23 deletions

View file

@ -117,7 +117,7 @@ template<> void inout_matrix_func(bool *inputMatrix, int nbRow, int nbCol, bool
*nbColRes = nbCol;
*resultMatrix = (bool*) malloc(size * sizeof(bool));
for (i=0; i<size; i++) {
(*resultMatrix)[i] = ~inputMatrix[i];
(*resultMatrix)[i] = inputMatrix[i]==1?0:1;
}
}
%}