Mercurial > octave
view CITATION @ 31041:b949f8a631e2
perms.m: Cleanup for Octave coding conventions.
* perms.m: Align @deftypefn macros in docstring. Use @qcode macro in
docstrings for quoted options. Use newline before @example blocks to
set off examples from rest of documentation text. Use strcmpi instead
of isequal for better performance. Use single quotes to define strings
which contain double quotes to simplify code. Use meaningful variable
name 'n' instead of "tmp" to hold number of elements. Add semicolon
after return statements.
* perms.m (unique_perms): Renamed from "__perms_unique__". Change
function prototype to accept second input "uniqv" to avoid calling
unique() twice. Rename "uvec" to "uniqv" for clarity. Rename "ulen"
to "n_uniq" for clarity. Cuddle parenthesis with variable when
performing indexing per Octave convention. Rename "indx" to "idx"
which is Octave conventional name for index. Use '!=" for not equal
operator rather than '~=' which is Octave convention. Move input
validation BIST tests to end of file.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 28 May 2022 18:28:42 -0700 |
parents | 04120d65778a |
children | 6c1e310b2230 |
line wrap: on
line source
To cite GNU Octave in publications use: John W. Eaton, David Bateman, Søren Hauberg, Rik Wehbring (2022). GNU Octave version 7.1.0 manual: a high-level interactive language for numerical computations. URL https://www.gnu.org/software/octave/doc/v7.1.0/ A BibTeX entry for LaTeX users is: @manual{, title = {{GNU Octave} version 7.1.0 manual: a high-level interactive language for numerical computations}, author = {John W. Eaton and David Bateman and S{\o}ren Hauberg and Rik Wehbring}, year = {2022}, url = {https://www.gnu.org/software/octave/doc/v7.1.0/}, } We have invested a lot of time and effort in creating GNU Octave, please cite it when using it. See also 'citation pkgname' for citing Octave packages.