Registered Member
|
Hi Folks,
I've recently posted some code on google code that enables gdb plotting, saving to a .mat file, and some other utilties for common numeric types, and I've added a few Eigen types to them (since Eigen is the best API out there..). Right now it just works for linear data - ArrayXd, VectorXd, ArrayXcd, Vector Xcd. Wouldn't be a big stretech to add other types as required. I thought some of you might find it useful. I get a lot of mileage out if it in my day-to-day development. http://code.google.com/p/gdb-plot/ One thing I'd like to suggest - The python code eigen-printers.py, like the printers suppled by a few other libraries is really nice, but I'm trying to encourage folks to modify the gdb-printers paradigm. The issue is that it's hard to hack/modify/add functionality, etc. because the data is not easily available to python as pure python. What I'd like to see: Separate the printer into a 'get data out of the c context and into the python context' and 'print data from the python context' That would enable folks to easily add utilities such as these. I've done that for the Eigen types that I use, and will add more as I need them. If someone would like to push more types, I'm happy to add code. That's just my $0.02. I hope someone finds this utility useful. Brian |
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], rblackwell