Java matrix to matlab conversion was accidentally falling through to element by element; was correct but slow. Fixed this, should be more efficient now

This commit is contained in:
jlizier 2018-08-20 10:30:28 +10:00
parent 97e46c66a3
commit a4b9f20801
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ function octaveMatrix = javaMatrixToOctave(javaMatrix, startRow, startCol, numRo
else else
% Else we're in matlab, in which case the native java type can be handled, so return it directly: % Else we're in matlab, in which case the native java type can be handled, so return it directly:
octaveMatrix = javaMatrix; octaveMatrix = javaMatrix;
return;
end end
% Else, we encountered an error in the octave resizing, so fall through to element by element conversion: % Else, we encountered an error in the octave resizing, so fall through to element by element conversion: