Using GDB with the Eigen C ++ Library

I am using the Eigen C ++ library, downloaded from http://eigen.tuxfamily.org/ . This is a C ++ library to simplify the processing of matrices and arrays. I use the g ++ compiler and gdb for debugging. However, I found that I could not print the contents of the matrix (provided by Eigen) when using gdb.

+4
source share
2 answers

You have a gdb extension that you can find in eigen / debug / gdb /

+8
source

, , .data(), , . GDB :

print *X.data()@Length_X

X - , Length_X - .

+5

All Articles