GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • » Octave core
  • » by package
  • » alphabetical

This view

  • Original page
  • New address

GeezerVison is showing octave.sourceforge.io — Function Reference: perms

Octave-Forge - Extra packages for GNU Octave
Home · Packages · Developers · Documentation · FAQ · Bugs · Mailing Lists · Links · Code

Navigation

Operators and Keywords

Function List:

  • » Octave core
  • » by package
  • » alphabetical

C++ API

: perms (v)

Generate all permutations of v with one row per permutation.

The result has size factorial (n) * n, where n is the length of v.

Example

perms ([1, 2, 3])
⇒
  1   2   3
  2   1   3
  1   3   2
  2   3   1
  3   1   2
  3   2   1

Programming Note: The maximum length of v should be less than or equal to 10 to limit memory consumption.

See also: permute, randperm, nchoosek.

Package: octave

SourceForge.net Logo
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.