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