Skip to content

Commit

Permalink
Added "see also" in \Zr`'s help
Browse files Browse the repository at this point in the history
  • Loading branch information
lmendo committed Sep 26, 2022
1 parent 7d24ee2 commit 01f313a
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
Binary file modified funDef.mat
Binary file not shown.
2 changes: 1 addition & 1 deletion funDef.txt
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ Y@ 1 2 1 2 1 1 1 true true true true if numel(in)==1 all possible permutations
out{1} = sortrows(combs); clear combs n x
end
% Variations are computed like Cartesian power (variations with repetitions), and then results with repetitions are removed
Z@ 1 3 1 2 1 1 1 true true true true c = ischar(in{1}); random permutation \matlab+randperm+ (produces a row vector as output). If $3$ inputs: third input indicates number of permutations, each on a different row. If first input is char it is interpreted as population (not as size)
Z@ 1 3 1 2 1 1 1 true true true true c = ischar(in{1}); random permutation \matlab+randperm+ (produces a row vector as output). If $3$ inputs: third input indicates number of permutations, each on a different row. If first input is char it is interpreted as population (not as size). \sa \matl+Zr+
if c, x = in{1}; in{1} = numel(in{1}); end
if numel(in)~=3, out{1} = randperm(in{:});
else [~, p] = sort(rand(in{3},in{1}),2); p = p(:,1:in{2}); out{1} = p; end
Expand Down
Binary file modified help.mat
Binary file not shown.
Binary file modified spec/MATL_spec.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion spec/funDefTable/funDefTable.tex
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
\matl{Y?} & 0 & 1 & answer why. Sort of \\
\matl{Z?} & 1--6 (3) & 1 & \matlab+sparse+. If $3$ inputs and third input is \matlab+char+, the output is converted to \matlab+char+ \\
\matl{Y@} & 1--2 (1 / 2) & 1 & If $1$ input: \matlab+perms+. If $2$ inputs: variations (without repetition). In either case, the results are sorted \\
\matl{Z@} & 1--3 (1 / 2) & 1 & \matlab+randperm+ (produces a row vector as output). If $3$ inputs: third input indicates number of permutations, each on a different row. If first input is char it is interpreted as population (not as size) \\
\matl{Z@} & 1--3 (1 / 2) & 1 & \matlab+randperm+ (produces a row vector as output). If $3$ inputs: third input indicates number of permutations, each on a different row. If first input is char it is interpreted as population (not as size). \sa \matl{Zr} \\
\matl{A} & 1--2 (1 / 2) & 1 & \matlab+all+. \sa \matl{XA} \\
\matl{XA} & 1 & 1 & \matlab+all(..., 1)+. \sa \matl{A} \\
\matl{YA} & 2--3 (2 / 3) & 1 & (i) \matlab+dec2base+. (ii) If second input has more than one element: it defines the symbols, which can be characters or numbers. The number of symbols defines the base, which can exceed $36$. (iii) If second input is a negative number \matlab+-n+: it is interpreted as symbols \matlab+0:n-1+ (case ii). (i, ii) Base \matl{0} is interpreted as \matl{10}, \matl{1} as \matl{16}, \matl{F} as \matl{0:9}, \matl{T} as \matl{0:15}. \sa \matl{ZA}, \matl{Za} \\
Expand Down

0 comments on commit 01f313a

Please sign in to comment.