From a4b9f20801d4474d175b735a92ede253e16bf3d2 Mon Sep 17 00:00:00 2001 From: jlizier Date: Mon, 20 Aug 2018 10:30:28 +1000 Subject: [PATCH] Java matrix to matlab conversion was accidentally falling through to element by element; was correct but slow. Fixed this, should be more efficient now --- demos/octave/javaMatrixToOctave.m | 1 + 1 file changed, 1 insertion(+) diff --git a/demos/octave/javaMatrixToOctave.m b/demos/octave/javaMatrixToOctave.m index 89206e1..15c5d1c 100755 --- a/demos/octave/javaMatrixToOctave.m +++ b/demos/octave/javaMatrixToOctave.m @@ -67,6 +67,7 @@ function octaveMatrix = javaMatrixToOctave(javaMatrix, startRow, startCol, numRo else % Else we're in matlab, in which case the native java type can be handled, so return it directly: octaveMatrix = javaMatrix; + return; end % Else, we encountered an error in the octave resizing, so fall through to element by element conversion: