Boost::uBLAS vs Eigen

前端 未结 3 2004
暖寄归人
暖寄归人 2021-02-18 23:07

I am used to Eigen for almost all my mathematical linear algebra work. Recently, I have discovered that Boost also provides a C++ template class library that provides Basic Line

3条回答
  •  再見小時候
    2021-02-18 23:34

    I just did a time complexity comparison between boost and eigen for fairly trivial matrix computations. These results, limited as they are, seem to denote that boost is a much better alternative. I had an FEM code which does the pre-processing parts (setting up the element matrices and stitching them together). So naturally, this would involve a lot of memory allocations.

    I wrote identical pieces of codes with Boost and Eigen on C++ (gcc 5.4.0, ubuntu 16.04, Intel i3 Quad Core, 2.40GHz, RAM : 4Gb) and ran them separately for varying node sizes (N) and calculated time using the linux cl-utility. As far as I'm concerned, I have decided to proceed with my code in Boost.

提交回复
热议问题