def test_constant_abscissae():
    k = get_basis_knots(np.arange(2))
    k.abscissae()
Beispiel #2
0
def test_constant_abscissae():
    k = get_basis_knots(np.arange(2))
    k.abscissae()
def test_nonuniform():
    a,b,c = 0., 2.5, 8
    ck = get_basis_knots([a,b,c]).get_basis()
    npt.assert_allclose(ck(a)[1], 0)
    npt.assert_allclose(ck(b)[1], 1.)
    npt.assert_allclose(ck(c)[1], 0.)
Beispiel #4
0
def test_nonuniform():
    a, b, c = 0., 2.5, 8
    ck = get_basis_knots([a, b, c]).get_basis()
    npt.assert_allclose(ck(a)[1], 0)
    npt.assert_allclose(ck(b)[1], 1.)
    npt.assert_allclose(ck(c)[1], 0.)