function x=flat(m)
% sanjay: flatten
% flat(x) =>  x(:)
x=m(:);