Пример #1
0
 def __init__(self, list, rows, cols, def_value=0):
     assert list and len(list) > 0 and len(list) == (rows * cols) 
     BaseDistanceMatrix.__init__(self, def_value)
     self.cols  = cols
     self.rows  = rows
     self._data = list
Пример #2
0
 def __init__(self, def_value=0):
     BaseDistanceMatrix.__init__(self, def_value)
     self._data = [[]]
Пример #3
0
 def __init__(self, def_value=0, use_array = True):
     BaseDistanceMatrix.__init__(self, def_value)
     self.use_array = use_array
Пример #4
0
 def __init__(self, rows, cols, colsize, data, def_value):
     BaseDistanceMatrix.__init__(self, def_value)
     self.data    = data
     self.colsize = colsize
     self.rows    = rows
     self.cols    = cols
Пример #5
0
 def __init__(self, max_rows, def_value = 1000000000):
     assert max_rows > 0
     BaseDistanceMatrix.__init__(self, def_value)
     self.max_rows = max_rows
Пример #6
0
 def __init__(self, list, rows, cols, def_value=0):
     assert list and len(list) > 0 and len(list) == (rows * cols)
     BaseDistanceMatrix.__init__(self, def_value)
     self.cols = cols
     self.rows = rows
     self._data = list
Пример #7
0
 def __init__(self, def_value=0, use_array=True):
     BaseDistanceMatrix.__init__(self, def_value)
     self.use_array = use_array
Пример #8
0
 def __init__(self, def_value=0):
     BaseDistanceMatrix.__init__(self, def_value)
     self._data = [[]]
Пример #9
0
 def __init__(self, max_rows, def_value=1000000000):
     assert max_rows > 0
     BaseDistanceMatrix.__init__(self, def_value)
     self.max_rows = max_rows
Пример #10
0
 def __init__(self, rows, cols, colsize, data, def_value):
     BaseDistanceMatrix.__init__(self, def_value)
     self.data = data
     self.colsize = colsize
     self.rows = rows
     self.cols = cols