% -*- texinfo -*- % @deftypefn {Function File} {@var{w} = } gfweight (@var{gen}) % @deftypefnx {Function File} {@var{w} = } gfweight (@var{gen},'gen') % @deftypefnx {Function File} {@var{w} = } gfweight (@var{par},'par') % @deftypefnx {Function File} {@var{w} = } gfweight (@var{p},n) % % Calculate the minimum weight or distance of a linear block code. The % code can be either defined by its generator or parity check matrix, or % its generator polynomial. By default if the first argument is a matrix, % it is assumed to be the generator matrix of the code. The type of the % matrix can be defined by a flag 'gen' for the generator matrix or % 'par' for the parity check matrix. % % If the first argument is a vector, it is assumed that it defines the % generator polynomial of the code. In this case a second argument is % required that defines the codeword length. % % @end deftypefn % @seealso{hammgen,cyclpoly,bchpoly}