function dim = size(ob)
%function dim = size(ob)
%       "size" method for Gtomo2 class
Ain = ob.Ain;
Aout = ob.Aout;

nnin = size(Ain);
nnout = size(Aout);

if ~(nnin(2) == nnout(2))
    sprintf('error in second dim of spiral in/out objects')
    return
end

dim = [nnin(1)+nnout(1) nnin(2)];

