SERVING THE QUANTITATIVE FINANCE COMMUNITY

 
User avatar
Cuchulainn
Topic Author
Posts: 63251
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

C++ Matrix Libraries: What are the choices?

April 1st, 2013, 5:09 pm

We have EigenuBLASAtlas Are there more? Is this all there is?
Chips chips chips Du du du du du Ci bum ci bum bum Du du du du du Ci bum ci bum bum Du du du du du
http://www.datasimfinancial.com
http://www.datasim.nl
 
User avatar
Polter
Posts: 2526
Joined: April 29th, 2008, 4:55 pm

C++ Matrix Libraries: What are the choices?

April 1st, 2013, 5:43 pm

 
User avatar
Polter
Posts: 2526
Joined: April 29th, 2008, 4:55 pm

C++ Matrix Libraries: What are the choices?

April 11th, 2013, 1:02 pm

BTW, this looks intriguing:http://cppnow.org/session/building-fini ... ract.pdf// upcoming talk (from the C++Now 2013 Schedule), here's more: http://cppnow.org/schedule-table/
 
User avatar
Cuchulainn
Topic Author
Posts: 63251
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

C++ Matrix Libraries: What are the choices?

April 12th, 2013, 6:40 am

QuoteOriginally posted by: PolterBTW, this looks intriguing:http://cppnow.org/session/building-fini ... ract.pdf// upcoming talk (from the C++Now 2013 Schedule), here's more: http://cppnow.org/schedule-table/Looks nice but the percentage hand-crafted/generated code is still high. A FEM engineer might just compute mass and stiffness matrices by hand - a tedious process, admittedly - before spending time learning a DSL? Does it scale? I miss the design 'vision' and how would they do DSL/Proto for one-factor time-dependent problems? Not easy IMO.But the idea is nice. What I like is that they are able to use Eigen from the DSL code and is a very good start.// The real question is how to get a 'handle' on this way of thinking?
Last edited by Cuchulainn on April 11th, 2013, 10:00 pm, edited 1 time in total.
Chips chips chips Du du du du du Ci bum ci bum bum Du du du du du Ci bum ci bum bum Du du du du du
http://www.datasimfinancial.com
http://www.datasim.nl
 
User avatar
Cuchulainn
Topic Author
Posts: 63251
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

C++ Matrix Libraries: What are the choices?

April 12th, 2013, 8:20 am

Regarding Eigen:It's very easy to use and install (header only) , the syntax is clear (like Fortran) and it is certainly worth looking at IMO.
Last edited by Cuchulainn on April 11th, 2013, 10:00 pm, edited 1 time in total.
Chips chips chips Du du du du du Ci bum ci bum bum Du du du du du Ci bum ci bum bum Du du du du du
http://www.datasimfinancial.com
http://www.datasim.nl
 
User avatar
OOglesby
Posts: 42
Joined: August 26th, 2011, 5:34 am

C++ Matrix Libraries: What are the choices?

April 12th, 2013, 8:28 am

As an aside for any MATLAB programmers out there, Eigen has syntax that allow performing an operation along all the rows or columns of a matrix just like MATLAB. Many of the vectorization tricks that are part of MATLAB transfer well to Eigen.
 
User avatar
Stale
Posts: 209
Joined: November 7th, 2006, 3:20 pm

C++ Matrix Libraries: What are the choices?

April 15th, 2013, 8:40 am

 
User avatar
Cuchulainn
Topic Author
Posts: 63251
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

C++ Matrix Libraries: What are the choices?

April 16th, 2013, 11:27 am

QuoteOriginally posted by: StaleArmadillo? http://arma.sourceforge.net/Looks like easy-to-use syntax. The basic functionality looks simillar to Boost uBLAS. Row and column iterators are nice looking.Any experience of linking up to LAPACK/ATLAS? (I tried ATLAS in Windows but it was a howler).
Last edited by Cuchulainn on April 15th, 2013, 10:00 pm, edited 1 time in total.
Chips chips chips Du du du du du Ci bum ci bum bum Du du du du du Ci bum ci bum bum Du du du du du
http://www.datasimfinancial.com
http://www.datasim.nl
 
User avatar
Cuchulainn
Topic Author
Posts: 63251
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

C++ Matrix Libraries: What are the choices?

April 16th, 2013, 12:35 pm

On a related topic nice to have1. a minimalist matrix libary with 20% of what is really needed. For MSc students and when you just want to test something AKA "I don't want the full kitchen sink". Later than you can use the joys of ATLAS and LAPACK.2. a related libary to serve as foundation for linear and nonlinear optimisation PLUS a nice way to model vector-* functions (alglib is a wee bit obtuse for me).
Last edited by Cuchulainn on April 15th, 2013, 10:00 pm, edited 1 time in total.
Chips chips chips Du du du du du Ci bum ci bum bum Du du du du du Ci bum ci bum bum Du du du du du
http://www.datasimfinancial.com
http://www.datasim.nl
 
User avatar
Cuchulainn
Topic Author
Posts: 63251
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

C++ Matrix Libraries: What are the choices?

April 17th, 2013, 7:19 am

QuoteIn practice it's so much easier to use Excel or R when you need to offer a quick solution (coding time) where a factor 10 in performance is completely irrelevant.Yes, this is possible. But it represents one scenario of how developers work and it implies twice the effort (do once on Excel/Malab, then in C++). And it means non-potable software.But why do we need 10 matrix libraries in C++? Fortran never had this problem. C++ 11 could have done a bit it to stabilise things. All that matrix stuff is easy and many of the 10 libraries stop half-way. These days is CS undergrad stuff. I bet there are very few libraries that deal with the issues in my previous post (alglib is the only one I know). Many of these libraries have user-unfriendly install.As I mentioned, students create little matrix libraries them in order to learn even if there are 10 libraries out there.
Last edited by Cuchulainn on April 16th, 2013, 10:00 pm, edited 1 time in total.
Chips chips chips Du du du du du Ci bum ci bum bum Du du du du du Ci bum ci bum bum Du du du du du
http://www.datasimfinancial.com
http://www.datasim.nl
 
User avatar
Cuchulainn
Topic Author
Posts: 63251
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

C++ Matrix Libraries: What are the choices?

April 17th, 2013, 7:46 am

One issue is if you write software that works with library A and you want it then to with libary B you have to copy the code and modify it, yes?
Last edited by Cuchulainn on April 16th, 2013, 10:00 pm, edited 1 time in total.
Chips chips chips Du du du du du Ci bum ci bum bum Du du du du du Ci bum ci bum bum Du du du du du
http://www.datasimfinancial.com
http://www.datasim.nl
 
User avatar
Cuchulainn
Topic Author
Posts: 63251
Joined: July 16th, 2004, 7:38 am
Location: Amsterdam
Contact:

C++ Matrix Libraries: What are the choices?

April 17th, 2013, 8:22 am

BTW there is a new Boost ODE package. I see that some solvers (e.g. implicit Euler) use uBlAS LU decomposition which is incorrectly implemented big time and is awful slow. This should be a bug report to Boost. BTW his do the 'masses' (like myself) report on these issues in an effective way to the Boost inner group? Here's problem descriptionA nuance is to logically separate1. Martix data structures2. Algos that use 1.Better than saying that the "combined" (1+2) library is slow.
Last edited by Cuchulainn on April 16th, 2013, 10:00 pm, edited 1 time in total.
Chips chips chips Du du du du du Ci bum ci bum bum Du du du du du Ci bum ci bum bum Du du du du du
http://www.datasimfinancial.com
http://www.datasim.nl
ABOUT WILMOTT

PW by JB

Wilmott.com has been "Serving the Quantitative Finance Community" since 2001. Continued...


Twitter LinkedIn Instagram

JOBS BOARD

JOBS BOARD

Looking for a quant job, risk, algo trading,...? Browse jobs here...


GZIP: On