% Simple function for demonstrating gmres
%
% Samuli Siltanen November 2012

function res = Aaction(x)

res = zeros(2,1);
res(1) = x(2);
res(2) = x(1);
