From: <car...@us...> - 2012-09-02 03:32:27
|
Revision: 10947 http://octave.svn.sourceforge.net/octave/?rev=10947&view=rev Author: carandraug Date: 2012-09-02 03:32:21 +0000 (Sun, 02 Sep 2012) Log Message: ----------- isind: also check part first for speedup Modified Paths: -------------- trunk/octave-forge/main/image/inst/isind.m Modified: trunk/octave-forge/main/image/inst/isind.m =================================================================== --- trunk/octave-forge/main/image/inst/isind.m 2012-09-02 03:17:47 UTC (rev 10946) +++ trunk/octave-forge/main/image/inst/isind.m 2012-09-02 03:32:21 UTC (rev 10947) @@ -42,7 +42,7 @@ elseif (ndims (img) == 2) switch (class (img)) case "double" - bool = isindex (img); + bool = ispart (@isindex, img); case {"uint8", "uint16"} bool = true; endswitch This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |