コード例 #1
0
ファイル: test_matrix.py プロジェクト: mhavasi/stheno
def test_shorthands():
    a = Dense(np.random.randn(4, 4))
    yield assert_allclose, a.T, B.transpose(a)
    yield assert_allclose, a.__matmul__(a), B.matmul(a, a)
コード例 #2
0
def test_shorthands():
    a = Dense(np.random.randn(4, 4))
    allclose(a.T, B.transpose(a))
    allclose(a.__matmul__(a), B.matmul(a, a))