CppMatLib

Dynamic Array Objects

by Nikolai Shokhirev

(Development . . . Please check later)

Design remarks

Algebra is about indexed objects (tensors, vectors, matrices). 

The objects support the arbitrary boundaries of arrays: 

Column Vector: C[Lo1..Hi1]

Row Vector R[Lo1..Hi1


        2D Matrix [Lo1..Hi1,Lo2..Hi2]    


3D Matrix

(Pictures by Max Shokhirev)

The arbitrary indexing may be convenient, for example, in treatment of some problems in physics: .

The default is the FORTRAN-like (one-based) indexing. This indexing is the most common in mathematics. The base can be changed dynamically.

 In order to simplify the use of algebra objects and avoid memory leaks, the interface-based approach was chosen.

 

 Examples

Below are several simplified examples (see the Examples directory). 

 

Download

The Object Algebra units are available in the Download section


Programming toolsCppMatLib Tutorial | User guide | Download

Home  |   Shokhirev.com |  Sample code  |   Programming  |    Resume

Please e-mail me at nikolai@shokhirev.com

ŠNikolai V. Shokhirev, 2002-2006