News for hackers. Stuff that matters.
Re:C++20 has been approved by logicchains on Sunday September 06, 2020 @06:56AM (#24390486)
>Nowadays I am using C++ mainly for the high-performance libraries, and only if I can't archive the same in jit-ed python, cython or rust.

Is anyone aware of a library for another language that's as fast as Eigen?

Re:C++20 has been approved by singhrac on Sunday September 06, 2020 @12:26PM (#24392451)
This is a hard comparison because pretty much all of these libraries call a BLAS implementation under the hood, so what you might be comparing is actually the cost of stuffing the array with your data in each language (which is obviously task specific).

I think it'd be difficult to argue one way or another: Eigen gives you flexibility one way (custom kernels) and Python gives you another (interactive debugging and easy visualization). Cython/Numba make it even more muddied.

Re:C++20 has been approved by shaklee3 on Sunday September 06, 2020 @12:36PM (#24392549)
I can definitely takes the cake for an easy to use syntax for doing all kinds of linear algebra. It's only able to do that because the extensive operator overloading that C++ allows. However, don't want that for you for a speed. Using something like MKL directly is always going to be faster than eigen. The trade-off is the API is much more complex.