Bugfix. The eigenvalues/vectors were already sorted, yet were resorted and the code for doing so sometimes swapped two vectors (equal values?). The swap however was wrong: mxRowSwap uses a non-conventional definition of rows and columns : matrix[column][row]. Furthermore, the vectors were saved while on the colums, yet were expected by other programs  to be on rows.
Bugfix. The eigenvalues/vectors were already sorted, yet were resorted and the code
for doing so sometimes swapped two vectors (equal values?). The swap however was wrong:
mxRowSwap uses a non-conventional definition of rows and columns : matrix[column][row].
Furthermore, the vectors were saved while on the colums, yet were expected by other programs 
to be on rows.

bengio/deeptorch,rbhambriiit/deeptorch,bengio/deeptorch,nagyistoce/deeptorch,rbhambriiit/deeptorch,bengio/deeptorch,nagyistoce/deeptorch,nagyistoce/deeptorch,rbhambriiit/deeptorch