Mercurial > hg > octave-lyh
comparison scripts/specfun/perms.m @ 10821:693e22af08ae
Grammarcheck documentation of m-files
Add newlines between @item fields for readability.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Mon, 26 Jul 2010 21:25:36 -0700 |
parents | 804c21f3659b |
children | fd0a3ac60b0e |
comparison
equal
deleted
inserted
replaced
10820:c44c786f87ba | 10821:693e22af08ae |
---|---|
23 ## Generate all permutations of @var{v}, one row per permutation. The | 23 ## Generate all permutations of @var{v}, one row per permutation. The |
24 ## result has size @code{factorial (@var{n}) * @var{n}}, where @var{n} | 24 ## result has size @code{factorial (@var{n}) * @var{n}}, where @var{n} |
25 ## is the length of @var{v}. | 25 ## is the length of @var{v}. |
26 ## | 26 ## |
27 ## As an example, @code{perms([1, 2, 3])} returns the matrix | 27 ## As an example, @code{perms([1, 2, 3])} returns the matrix |
28 ## | |
28 ## @example | 29 ## @example |
29 ## @group | 30 ## @group |
30 ## 1 2 3 | 31 ## 1 2 3 |
31 ## 2 1 3 | 32 ## 2 1 3 |
32 ## 1 3 2 | 33 ## 1 3 2 |