|
On 10/08/2005 05:31:24 AM, Joseph Wang wrote:
> I was wondering what the design rationale was for creating a new
> Array class rather than using or subclassing vector<Real>?
It was to express the concept of an array in the linear-algebra sense,
rather than a generic container. Indeed, I shuddered slightly this
morning when I saw TridiagonalOperator's methods being applied to
generic containers :) I'm not sure that I like it.
Also, it allowed us to write things like operator*(Matrix,Array) which,
being specific for linear algebram I wouldn't add to std::vector's
interface.
Later,
Luigi
----------------------------------------
Quote me as saying I was misquoted.
-- Groucho Marx
|