[go: up one dir, main page]

Pretty printing Eigen vectors and matrices: wrong dimensions

Submitted by Allan Leal

Assigned to Nobody

Link to original bugzilla bug (#511)

Description

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.

Edited by Eigen Bugzilla