def testRepFromBlocks(self): m1 = np.arange(2 * 3).reshape(2, 3) m2 = np.arange(2 * 4).reshape(2, 4) bm = diagBlock([m1, m2], 2)
def testRepFrom1D(self): m1 = np.arange(2 * 3) bm = diagBlock(m1, 5)
def testRepFrom2D(self): m1 = np.arange(2 * 3).reshape(2, 3) bm = diagBlock(m1, 2)
def testFrom1D(self): m1 = np.arange(2 * 3) bm = diagBlock([m1])
def testFromNdarray(self): m1 = np.arange(2 * 3) bm = diagBlock([m1])
def testAll2D(self): m1 = np.arange(2 * 3).reshape(2, 3) m2 = np.arange(2 * 4).reshape(2, 4) bm = diagBlock([m1, m2])