AM> What is the standard vector template? I know the MFC CArray class, a
It's a class template included in the Standard C++ Library (aka STL).
It has nothing to do with Microsoft (and I'm happy about that).
AM> it is tempting to create a derived Vector class [and also a Matrix
AM> class, btw] adding the overload of double * Vector, Vector + (or -)
AM> Vector, and Vector * Vector (scalar product). In fact, I have alread
AM> done those operations, for a class Vector with variable members int
AM> (dimension) and double * v (the array of elements).
So you think of vectors in the mathematical sens of the term. Then the
val_array class template (also in the Standard C++ Library) might be
what you are looking for.
Thomas
---
þ MM 1.0 #0113 þ I'm as confused as a baby at a topless bar.
---------------
* Origin: McMeier & Son BBS (2:301/138)
|