This is only a tiny part of the lightspeed library. Download the whole thing
from http://www.stat.cmu.edu/~minka/software/lightspeed/

Original README contents follows...
-----

Lightspeed is a library of efficient and useful matlab functions.
See Contents.m for a synopsis.

You can place the lightspeed directory anywhere.
To make sure lightspeed is always in your path, create a startup.m
file in your matlab directory, if you don't already have one, and add
a line like this:
  addpath('c:\matlab\lightspeed')
Replace 'c:\matlab\lightspeed' with the location of the lightspeed directory.

Lightspeed has some Matlab Extension (MEX) files that need to be compiled.
This can be done in matlab via:
  cd c:\matlab\lightspeed
  install_lightspeed

You can find timing tests in the files test_*.m

Tom Minka
minka@stat.cmu.edu
9/12/03
