def test_argsort_2():
    x = np.array([3, 1, 2])
    y = np.argsort(x)
    z = nw.argsort(x)
    assert_almost_equal(y, z)
示例#2
0
def test_argsort_2():
    x = np.array([3, 1, 2])
    y = np.argsort(x)
    z = nw.argsort(x)
    assert_almost_equal(y, z)
def test_argsort_1():
    x = np.array([3, 1, 2])
    y = np.argsort(x)
    _x = x * PhysicalQuantity(1, "m^2")
    _y = nw.argsort(_x)
    assert_almost_equal(_y, y)
示例#4
0
def test_argsort_1():
    x = np.array([3, 1, 2])
    y = np.argsort(x)
    _x = x * PhysicalQuantity(1, 'm^2')
    _y = nw.argsort(_x)
    assert_almost_equal(_y, y)