コード例 #1
0
def test_coo_toarray():
    a = np.arange(100).reshape(10, 10)
    b = coo.fromarray(a)
    np.testing.assert_array_equal(b.toarray(), a)
コード例 #2
0
ファイル: test_coo.py プロジェクト: cowlicks/spoorcellel
def test_coo_fromarray():
    a = np.arange(100).reshape(10, 10)
    res = coo.fromarray(a)
    assert res.shape == (10, 10)
コード例 #3
0
def test_coo_fromarray():
    a = np.arange(100).reshape(10, 10)
    res = coo.fromarray(a)
    assert res.shape == (10, 10)
コード例 #4
0
ファイル: test_coo.py プロジェクト: cowlicks/spoorcellel
def test_coo_toarray():
    a = np.arange(100).reshape(10, 10)
    b = coo.fromarray(a)
    np.testing.assert_array_equal(b.toarray(), a)