Loadable Function: p = partcnt(n)

Calculate integer partition count. Argument n be scalar, vector or matrix of non-negative numbers. A partition is the sum decomposition of integers.

Example:

partcnt([1, 5; 17 -3])

returns

ans =
   1     7
 297   NaN

Reference: Joerg Arndt: Algorithms for programmers (http://www.jjj.de), 2006.

See also: partint.

Package: miscellaneous