[go: up one dir, main page]

Pretty printer does not work with dynamic matrices

Submitted by Allan Leal

Assigned to Nobody

Link to original bugzilla bug (#320)
Version: 3.0
Operating system: Windows

Description

The following modification in the file printers.py was necessary to get the pretty printer working for dynamic-sized matrices:

#if template_params[1] == '-0x00000000000000001':
if template_params[1] == '-0x000000001':
self.rows = val['m_storage']['m_rows']
else:
self.rows = int(template_params[1])

#if template_params[2] == '-0x00000000000000001':
if template_params[2] == '-0x000000001':
self.cols = val['m_storage']['m_cols']
else:
self.cols = int(template_params[2])

I am in a MinGW + Eclipse CDT environment. While in debug mode, when I hover over a dynamic-sized matrix, I see -0x000000001 instead of -0x00000000000000001. After changing these values, the printer is able to output both static and dynamic matrices.

Edited by Eigen Bugzilla