tehrengruber / LLDB-Eigen-Data-Formatter

LLDB Data Formatter for dense matrices and vectors of the Eigen library
GNU General Public License v3.0
42 stars 9 forks source link

matrix too large to print #10

Open weixi234 opened 4 weeks ago

weixi234 commented 4 weeks ago

Using LLDB Eigen Data Modeler in Clion,matrix too large to print:

(lldb) p cloud_in (Eigen::MatrixXf) [matrix too large]

At the same time, I have another question. Can the variable debugged in the click directly display the value of Eigen? Eigen-Debug

tehrengruber commented 2 weeks ago

There is a somewhat artificial limit of 100 elements after which the matrix is not printed. You can change this here: https://github.com/tehrengruber/LLDB-Eigen-Data-Formatter/blob/master/LLDB_Eigen_Data_Formatter.py#L41 I'm happy to review a PR that makes this configurable.

At the same time, I have another question. Can the variable debugged in the click directly display the value of Eigen?

Can you elaborate, I don't really understand.