Giter Site home page Giter Site logo

lldb-eigen-data-formatter's People

Contributors

chrisdembia avatar planetmarshall avatar tehrengruber avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lldb-eigen-data-formatter's Issues

Eigen vectors of dynamic size don't work properly

#include <Eigen/Dense>
#include <iostream>

int main() {
  Eigen::VectorXd a(3, 1);

  std::cout << a << std::endl;
}

Eigen vectors of dynamic size won't work if .rows() and .cols() are inlined. In order to make this work we need to infer the number of cols from the template parameter and get the number of rows from m_storage.m_rows

Output for dynamicially sized matrices is None

I've installed with bash -c "$(curl -fsSL https://raw.githubusercontent.com/tehrengruber/LLDB-Eigen-Data-Formatter/master/tools/install.sh)".

Is there anything else I would need to do to get it to work in CLion IDE on a Mac?
Does lldb look in ~/.lldbinit by default?

This is what I get if ->

(lldb) print this->x_
(Eigen::VectorXd) $4 = None

Conversion to Python 3 (and LLDB 9.0.1)

I used 2to3 to convert LLDB_Eigen_Data_Formatter.py but only with limited success. The matrices now print out in transposed format (which is good enough) but LLDB records error messages along the lines of

Traceback (most recent call last): File "/home/me/.lldb-eigen-data-formatter/LLDB_Eigen_Data_Formatter.py", line 128,
in format_matrix return dynamically_sized_matrix_to_string(valobj) File "/home/me/.lldb-eigen-data-formatter/LLDB_Eigen_Data_Formatter.py", line 121,
in dynamically_sized_matrix_to_string return print_raw_matrix(data, rows, cols) File "/home/me/.lldb-eigen-data-formatter/LLDB_Eigen_Data_Formatter.py", line 51,
in print_raw_matrix output += val.rjust(padding+1, ' ') AttributeError: 'NoneType' object has no attribute 'rjust'

Obviously, the valobj object is of the type None. The trail runs cold there.

Any help is warmly appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.