The ListOfVectors Class

The ListOfVectors Class

This class represents a variable list or array of Vectors. The interface to the class allows the programmer to add Vectors to the end of the list, and access Vectors through array indices. Sublists can also be generated.

To Obtain the Class

To obtain the ListOfVectors class you need both the include file ListOfVectors.h and the source code file ListOfVectors.C.

The user must also include the Vector Class for the ListOfVectors class to operate correctly

Make Sure to Also Include...

Be sure to include the following lines in your source code file, as these routines utilize them.

            #include <stdlib.h>
            #include <math.h>
            #include <stream.h>
            #include <strings.h>
Also, if you wish to use UNIX commands (exevlp, system, sleep, etc.) in your program, you should also have
            #include <unistd.h>

This class does not keep a linked list of Vectors, but maintains an array of Vectors, which is set at a certain size initially, and then expanded in chunks when it is necessary. Externally this is not visible to the user of the class, but when modifying the class, this fact must be taken into consideration.

This class was generated for a research system at UC Davis and has been successfully used by a number of students and faculty over the past three years. Unfortunately, this is not a guarantee that it will work in your situation. You may use it ``as is'' or can modify it. If you find errors, and can correct them, please send mail to the address below, as we would also like to know about them.

This document maintained by Ken Joy.
Comments to the author :

All contents copyright (c) 1998
Computer Science Department, University of California, Davis
All rights reserved.

Ken Joy
Wed Jan 7 14:58:41 PST 1998