mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Changed debug/gdb/printers.py to correctly display variable sized matrices.
There is no python error now.
This commit is contained in:
parent
4f0909b5f0
commit
e9868f438b
@ -56,20 +56,22 @@ class EigenMatrixPrinter:
|
|||||||
template_params = m.split(',')
|
template_params = m.split(',')
|
||||||
template_params = map(lambda x:x.replace(" ", ""), template_params)
|
template_params = map(lambda x:x.replace(" ", ""), template_params)
|
||||||
|
|
||||||
self.rows = int(template_params[1])
|
if template_params[1] == '-0x00000000000000001':
|
||||||
self.cols = int(template_params[2])
|
self.rows = val['m_storage']['m_rows']
|
||||||
|
else:
|
||||||
|
self.rows = int(template_params[1])
|
||||||
|
|
||||||
|
if template_params[2] == '-0x00000000000000001':
|
||||||
|
self.cols = val['m_storage']['m_cols']
|
||||||
|
else:
|
||||||
|
self.cols = int(template_params[2])
|
||||||
|
|
||||||
self.options = 0 # default value
|
self.options = 0 # default value
|
||||||
if len(template_params) > 3:
|
if len(template_params) > 3:
|
||||||
self.options = template_params[3];
|
self.options = template_params[3];
|
||||||
|
|
||||||
self.rowMajor = (int(self.options) & 0x1)
|
self.rowMajor = (int(self.options) & 0x1)
|
||||||
|
|
||||||
if self.rows == 10000:
|
|
||||||
self.rows = val['m_storage']['m_rows']
|
|
||||||
|
|
||||||
if self.cols == 10000:
|
|
||||||
self.cols = val['m_storage']['m_cols']
|
|
||||||
|
|
||||||
self.innerType = self.type.template_argument(0)
|
self.innerType = self.type.template_argument(0)
|
||||||
|
|
||||||
self.val = val
|
self.val = val
|
||||||
|
Loading…
x
Reference in New Issue
Block a user