I just successfully compiled and ran a C++ program using ublas matrices. However, debugging (using gdb) was rather harder than I hoped, as I could find no way to see the contents of my matrices while debugging. For example, here’s what happens when I try to see an element of a matrix V (which does exist and is full of data):
(gdb) print V(1,1)
Invalid data type for function to be called.
I’d be very grateful if someone could tell me how to get around this problem.
Thanks very much.