Multidimensional Array Classes for C++

ContainArray defines three classes for multidimensional arrays: Vector (1-D), Matrix (2-D), and Tensor (3-D). These classes are templated to act as containers for any datatype. They are especially intended for scientific computing applications in which arrays are used for storage of data (such as positions and velocities) rather than matrix algebra.

With this purpose in mind, ContainArray is designed to be convenient, portable, and free. Take a look at the class header and example program. Or, download the complete package in tarball format.

Features:

If you like this software, you might also want to try my Mersenne Twister random number generator and ConfigFile configuration file reader.

Counter visits since 13 Mar 05.

^ home
Rick Wagner ( wagnerr@umich.edu ) 14 Mar 05