Vectors
The first example shows how to declare and use
RWMathVec<T>, the Essential Math Module vector class, to add two vectors.
#include <rw/math/mathvec.h> // 1
#include <iostream.h> // 2
int main()
{
RWMathVec<int> iv(10, 0, 1); // 3
RWMathVec<double> dv = "[4 5 8 9 7 5 3 4 3 0]"; // 4
RWMathVec<double> div = RWConvertMathVec<int,double>(iv); // 5
cout << div + dv; // 6
}