Mercurial > hg > octave-lyh
diff scripts/specfun/perms.m @ 9051:1bf0ce0930be
Grammar check TexInfo in all .m files
Cleanup documentation sources to follow a few consistent rules.
Spellcheck was NOT done. (but will be in another changeset)
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Fri, 27 Mar 2009 22:31:03 -0700 |
parents | a1dbe9d80eee |
children | 16f53d29049f |
line wrap: on
line diff
--- a/scripts/specfun/perms.m +++ b/scripts/specfun/perms.m @@ -19,18 +19,20 @@ ## -*- texinfo -*- ## @deftypefn {Function File} {} perms (@var{v}) ## -## Generate all permutations of @var{v}, one row per permutation. The +## Generate all permutations of @var{v}, one row per permutation. The ## result has size @code{factorial (@var{n}) * @var{n}}, where @var{n} ## is the length of @var{v}. ## ## As an example, @code{perms([1, 2, 3])} returns the matrix ## @example +## @group ## 1 2 3 ## 2 1 3 ## 1 3 2 ## 2 3 1 ## 3 1 2 ## 3 2 1 +## @end group ## @end example ## @end deftypefn