diff scripts/sparse/spfun.m @ 7505:f5005d9510f4

Remove dispatched sparse functions and treat in the generic versions of the functions
author David Bateman <dbateman@free.fr>
date Wed, 20 Feb 2008 15:52:11 -0500
parents aeeb646f6538
children eb63fbe60fab
line wrap: on
line diff
--- a/scripts/sparse/spfun.m
+++ b/scripts/sparse/spfun.m
@@ -30,12 +30,8 @@
     print_usage ();
   endif
 
-  if (issparse (s))
-    [i,j,v,m,n] = spfind (s);
-  else
-    [i, j, v] = find (s);
-    [m, n] = size (s);
-  endif
+  [i, j, v] = find (s);
+  [m, n] = size (s);
 
   if (isa (f, "function_handle") || isa (f, "inline function"))
     t = sparse (i, j, f(v), m, n);