% reverse - reverse a vector
%
% reverse :: [[N]] -> [[N]].
% reverse :: [[1,N]] -> [[1,N]].
%
% Works on row or column vectors, preserving orientation.
function y=reverse(x), y = x(length(x):-1:1); end
