% -*- texinfo -*- % @deftypefn {Function File} {@var{par} =} gen2par (@var{gen}) % @deftypefnx {Function File} {@var{gen} =} gen2par (@var{par}) % % Converts binary generator matrix @var{gen} to the parity chack matrix % @var{par} and visa-versa. The input matrix must be in standard form. % That is a generator matrix must be k-by-n and in the form [eye(k) P] % or [P eye(k)], and the parity matrix must be (n-k)-by-n and of the % form [eye(n-k) P'] or [P' eye(n-k)]. % % @end deftypefn % @seealso{cyclgen,hammgen}