Mercurial > forge
changeset 10761:1298f8809806 octave-forge
isind: also check part first for speedup
author | carandraug |
---|---|
date | Sun, 02 Sep 2012 03:32:21 +0000 |
parents | 8e2efdc5e602 |
children | 736f1a138cdf |
files | main/image/inst/isind.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/main/image/inst/isind.m Sun Sep 02 03:17:47 2012 +0000 +++ b/main/image/inst/isind.m Sun Sep 02 03:32:21 2012 +0000 @@ -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