Definition at line 238 of file AtlRunQueryUtils.py.
◆ result
◆ __init__()
| python.utils.AtlRunQueryUtils.Matrix.__init__ |
( |
| self, |
|
|
| cols, |
|
|
| rows ) |
Definition at line 240 of file AtlRunQueryUtils.py.
240 def __init__(self, cols, rows):
241 self.cols = cols
242 self.rows = rows
243
244 self.matrix = []
245 for i in range(rows):
246 ea_row = []
247 for j in range(cols):
248 ea_row.append(0)
249 self.matrix.append(ea_row)
250
◆ __iter__()
| python.utils.AtlRunQueryUtils.Matrix.__iter__ |
( |
| self | ) |
|
Definition at line 263 of file AtlRunQueryUtils.py.
263 def __iter__(self):
264 for row in range(self.rows):
265 for col in range(self.cols):
266 yield (self.matrix, row, col)
267
◆ __repr__()
| python.utils.AtlRunQueryUtils.Matrix.__repr__ |
( |
| self | ) |
|
Definition at line 257 of file AtlRunQueryUtils.py.
257 def __repr__(self):
258 outStr = ""
259 for i in range(self.rows):
260 outStr += 'Row %s = %s\n' % (i+1, self.matrix[i])
261 return outStr
262
◆ getitem()
| python.utils.AtlRunQueryUtils.Matrix.getitem |
( |
| self, |
|
|
| col, |
|
|
| row ) |
Definition at line 254 of file AtlRunQueryUtils.py.
254 def getitem(self, col, row):
255 return self.matrix[col-1][row-1]
256
◆ setitem()
| python.utils.AtlRunQueryUtils.Matrix.setitem |
( |
| self, |
|
|
| col, |
|
|
| row, |
|
|
| v ) |
Definition at line 251 of file AtlRunQueryUtils.py.
251 def setitem(self, col, row, v):
252 self.matrix[col-1][row-1] = v
253
◆ cols
| python.utils.AtlRunQueryUtils.Matrix.cols = cols |
◆ matrix
| python.utils.AtlRunQueryUtils.Matrix.matrix = [] |
◆ rows
| python.utils.AtlRunQueryUtils.Matrix.rows = rows |
The documentation for this class was generated from the following file: