Bug 511 - Pretty printing Eigen vectors and matrices: wrong dimensions
: Pretty printing Eigen vectors and matrices: wrong dimensions
Status: RESOLVED FIXED
Product: Eigen
Classification: Unclassified
Component: General
: unspecified
: All All
: Normal normal
Assigned To: Nobody
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2012-09-19 14:02 UTC by Allan Leal
Modified: 2012-09-26 23:50 UTC (History)
2 users (show)



Attachments

Description Allan Leal 2012-09-19 14:02:38 UTC
To get the Eigen pretty printer to get the correct dimension of dynamic vectors
and matrices, I had to change the lines:


if template_params[1] == '-0x00000000000000001' or template_params[1] ==
'-0x000000001':

to

if template_params[1] == '-0x00000000000000001' or template_params[1] ==
'-0x000000001' or template_params[1] == '-1':

and 

if template_params[2] == '-0x00000000000000001' or template_params[2] ==
'-0x000000001':

to

if template_params[2] == '-0x00000000000000001' or template_params[2] ==
'-0x000000001' or template_params[2] == '-1':

This was experienced under Windows, using MinGW. I did not have such problems
in Linux.
Comment 1 Gael Guennebaud 2012-09-26 23:50:08 UTC
thank you for the report and fix.

https://bitbucket.org/eigen/eigen/changeset/5a4b24d14d26/
changeset:   5a4b24d14d26
user:        ggael
date:        2012-09-26 23:48:48
summary:     fix bug 511: pretty printers on windows


https://bitbucket.org/eigen/eigen/changeset/63fe9fb8210e/
changeset:   63fe9fb8210e
branch:      3.1
user:        ggael
date:        2012-09-26 23:48:48
summary:     fix bug 511: pretty printers on windows
(transplanted from 5a4b24d14d26c0ce44a47582dbf06de1225cb96a)

Note You need to log in before you can comment on or make changes to this bug.