18 Jul
2017
18 Jul
'17
6:48 a.m.
BTW: A polynomial class working with std::array / boost::array would be great! No allocation at all...
Maybe I did not understand this properly but I disagree that using std::array/boost::array will significantly reduce memory allocations. In my opinion, it is the implementation which determines the number of memory allocations. You can have the same number of allocations with vector. Also, you would need to know the sizes of vectors at the compile time if arrays are to be used. Wouldn't this be too restrictive? -- Lakshay