コード例 #1
0
ファイル: test_io.py プロジェクト: djhoese/vispy
def test_huge_cross():
    """Test cross product with lots of elements"""
    x = np.random.rand(100000, 3)
    y = np.random.rand(1, 3)
    z = np.cross(x, y)
    zz = _fast_cross_3d(x, y)
    assert_array_equal(z, zz)
コード例 #2
0
ファイル: test_io.py プロジェクト: Peque/vispy
def test_huge_cross():
    """Test cross product with lots of elements
    """
    x = np.random.rand(100000, 3)
    y = np.random.rand(1, 3)
    z = np.cross(x, y)
    zz = _fast_cross_3d(x, y)
    assert_array_equal(z, zz)