diff util/SL_A.m @ 8:33850553b702

(none)
author idamnjanovic
date Mon, 22 Mar 2010 10:56:54 +0000
parents 7750624e0c73
children fc395272d53e
line wrap: on
line diff
--- a/util/SL_A.m	Mon Mar 22 10:47:17 2010 +0000
+++ b/util/SL_A.m	Mon Mar 22 10:56:54 2010 +0000
@@ -1,4 +1,4 @@
-  function y = SL_A(mode, m, n, x, I, dim)
+  function y = SL_A(A, mode, m, n, x, I, dim)
   % Ivan Damnjanovic 2009
   % This is auxilary function to allow implicit matrices from SPARCO 
   % to be used with SparsLab solvers
@@ -8,11 +8,11 @@
     
             u = zeros(dim, 1);
             u(I) = x;
-            y = SMALL.Problem.A(u,1);
+            y = A(u,1);
            
         elseif (mode == 2)
     
-            x2 = SMALL.Problem.A(x,2);
+            x2 = A(x,2);
             y = x2(I);
            
      end