ATLAS Offline Software
Loading...
Searching...
No Matches
python.utils.AtlRunQueryUtils.Matrix Class Reference
Inheritance diagram for python.utils.AtlRunQueryUtils.Matrix:
Collaboration diagram for python.utils.AtlRunQueryUtils.Matrix:

Public Types

typedef HLT::TypeInformation::for_each_type_c< typenameEDMLIST::map, my_functor, my_result<>, my_arg< HLT::TypeInformation::get_cont, CONTAINER > >::type result

Public Member Functions

 __init__ (self, cols, rows)
 setitem (self, col, row, v)
 getitem (self, col, row)
 __repr__ (self)
 __iter__ (self)

Public Attributes

 cols = cols
 rows = rows
list matrix = []

Detailed Description

Definition at line 238 of file AtlRunQueryUtils.py.

Member Typedef Documentation

◆ result

Definition at line 90 of file EDM_MasterSearch.h.

Constructor & Destructor Documentation

◆ __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 # initialize matrix and fill with zeroes
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

Member Function Documentation

◆ __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

Member Data Documentation

◆ cols

python.utils.AtlRunQueryUtils.Matrix.cols = cols

Definition at line 241 of file AtlRunQueryUtils.py.

◆ matrix

python.utils.AtlRunQueryUtils.Matrix.matrix = []

Definition at line 244 of file AtlRunQueryUtils.py.

◆ rows

python.utils.AtlRunQueryUtils.Matrix.rows = rows

Definition at line 242 of file AtlRunQueryUtils.py.


The documentation for this class was generated from the following file: