function v = Ahandle(x)

global A0
global B0
global flag_shiftA
global lambdamin
global vall
global valb
global alphall
global MVcount

if flag_shiftA == 1
  v = A0*x - lambdamin*(B0*x) + (vall*(alphall.*(vall'*x))); 
  MVcount = MVcount + 2;
elseif flag_shiftA == 0
  v = A0*x;
  MVcount = MVcount + 1;
elseif flag_shiftA == 2
  v = A0*x - lambdamin*(B0*x) + (valb*(alphall.*(valb'*x))); 
  MVcount = MVcount + 2;
end
