示例#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)