A Utility Library

SUBPAK is a MATLAB library which contains a number of utilities.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


SUBPAK is available in a C version and a C++ version and a FORTRAN77 version and a FORTRAN90 version and a MATLAB version.

Related Programs:

C8LIB, a MATLAB library which implements certain elementary functions for "C8" or double precision complex variables;

CELL, a MATLAB library which defines a cell array, a generalization of an array which can compactly store and retrieve vector or matrix data of varying size, such as the rows of a triangular matrix.

I4LIB, a MATLAB library which contains many utility routines, using "I4" or "single precision integer" arithmetic.

INDEX, a MATLAB library which converts a multidimensional vector index to a one-dimensional vector index; it can handle zero and one based indexing schemes, as well as column major and row major conventions.

R8LIB, a MATLAB library which contains many utility routines, using "R8" or "double precision real" arithmetic.


  1. Milton Abramowitz, Irene Stegun,
    Handbook of Mathematical Functions,
    National Bureau of Standards, 1964,
    ISBN: 0-486-61272-4,
    LC: QA47.A34.
  2. Book Industry Study Group,
    The Evolution in Product Identification: Sunrise 2005 and the ISBN-13,
  3. Thomas Cormen, Charles Leiserson, Ronald Rivest,
    Introduction to Algorithms,
    MIT Press, 2001,
    ISBN: 0262032937,
    LC: QA76.C662.
  4. Donald Kreher, Douglas Simpson,
    Combinatorial Algorithms,
    CRC Press, 1998,
    ISBN: 0-8493-3988-X,
    LC: QA164.K73.
  5. Albert Nijenhuis, Herbert Wilf,
    Combinatorial Algorithms for Computers and Calculators,
    Second Edition,
    Academic Press, 1978,
    ISBN: 0-12-519260-6,
    LC: QA164.N54.
  6. Branch Rickey,
    Goodby to Some Old Baseball Ideas,
    Life Magazine,
    2 August 1954.
  7. Alan Schwarz,
    Looking Beyond the Batting Average,
    The New York Times,
    Sunday, 1 August 2004.
  8. Daniel Zwillinger, editor,
    CRC Standard Mathematical Tables and Formulae,
    30th Edition,
    CRC Press, 1996,
    ISBN: 0-8493-2479-3,
    LC: QA47.M315.

Source Code:

Examples and Tests:

You can go up one level to the MATLAB source codes.

Last revised on 23 November 2015.