Exemple #1
0
def matrix2int(argin):
    return _Long(8).fromArray(_State(4, 4).toArray(argin), 4*4*8)
Exemple #2
0
def int2matrix(argin):
    return _State(4, 4).fromArray(_Long(8).toArray(argin, 4*4*8))
Exemple #3
0
 def matrix2int(self, argin):
     return _Long(self._wordSize).\
         fromArray(_State(self._nRows, self._nColumns).toArray(argin),
                   self._blockSize)
Exemple #4
0
 def int2matrix(self, argin):
     return _State(self._nRows, self._nColumns).\
         fromArray(_Long(self._wordSize).toArray(argin, self._blockSize))
 def matrix2int(self, argin):
     return _Long(self._wordSize).\
         fromArray(_State(self._nRows, self._nColumns).toArray(argin),
                   self._blockSize)
 def int2matrix(self, argin):
     return _State(self._nRows, self._nColumns).\
         fromArray(_Long(self._wordSize).toArray(argin, self._blockSize))