|
From: DU V. DE V. F. G. P. <fra...@ca...> - 2007-04-19 13:47:55
|
Hi all, =20 =20 I have tried to removing the dependency on Array class from the = optimization framework. One change leading to another it turns out that = Arrray dependencies could be removed in the whole QL ! The only change I = had to do was to provide missing operators an independent header file = and all worked fine. As a result I'm wondering if using plain = std::vector instead of Arrray wouldn't be more efficient in terms of = compilation efficiency and flexibility of use. (if one want to use = linear algebra he has just to include a file defining new operators...). = I haven't done serious tests but I don't think that it would cause any = performance loss since std::vector is a sequential container and is = "swapable" in constant time. On the other hand it would make the array = implementation more transparent to the user thus much more difficult to = replace if one want to provide another implementation (but is it likely = to happen ?) Any thought ? Fran=E7ois |