Registered Member
|
This seems a basic question: I've successfully configured the python gdb printer located at eigen/debug/gdb. I can stop at a break point and type 'p M' to print all elements of matrix M. But how can I print some elements of a matrix or vector? I've try 'p M[2,3]' and 'p M(2,3)' and that doesn't work.
Any one have some clue? Thanks, Wei |
Moderator
|
you probably have to do the addressing yourself, like:
p M.m_storage.m_data[2+3*<#rows>] |
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]