aboutsummaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
authorMiao Wang <miaowang@google.com>2017-03-06 13:45:08 -0800
committerMiao Wang <miaowang@google.com>2017-03-07 16:30:11 -0800
commit2b8756b6f1de65d3f8bffab45be6c44ceb7411fc (patch)
tree0488797fc544fe977bec6418c73445759f052482 /debug
parent353bba589de58014a35f8f3666b7b96353c300f8 (diff)
downloadeigen-2b8756b6f1de65d3f8bffab45be6c44ceb7411fc.tar.gz
Rebase Eigen to 3.3.3.
Bug: 34161771 Test: mm and RenderScript BLAS tests pass on bullhead. Change-Id: Ia448b3202708e395fed9c783ea4323289d69dbef
Diffstat (limited to 'debug')
-rw-r--r--debug/gdb/printers.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/debug/gdb/printers.py b/debug/gdb/printers.py
index 86996a4f9..0d67a5f99 100644
--- a/debug/gdb/printers.py
+++ b/debug/gdb/printers.py
@@ -49,7 +49,7 @@ class EigenMatrixPrinter:
regex = re.compile('\<.*\>')
m = regex.findall(tag)[0][1:-1]
template_params = m.split(',')
- template_params = map(lambda x:x.replace(" ", ""), template_params)
+ template_params = [x.replace(" ", "") for x in template_params]
if template_params[1] == '-0x00000000000000001' or template_params[1] == '-0x000000001' or template_params[1] == '-1':
self.rows = val['m_storage']['m_rows']
@@ -88,8 +88,11 @@ class EigenMatrixPrinter:
def __iter__ (self):
return self
-
+
def next(self):
+ return self.__next__() # Python 2.x compatibility
+
+ def __next__(self):
row = self.currentRow
col = self.currentCol
@@ -151,8 +154,11 @@ class EigenQuaternionPrinter:
def __iter__ (self):
return self
-
+
def next(self):
+ return self.__next__() # Python 2.x compatibility
+
+ def __next__(self):
element = self.currentElement
if self.currentElement >= 4: #there are 4 elements in a quanternion