[qu2cu] More cython annotations

Apparently you can even annotate variables inside generator expressions.
This commit is contained in:
Behdad Esfahbod 2023-02-20 14:12:59 -07:00
parent 5ee6cb9961
commit 03d2cd1fa5

View File

@ -111,6 +111,7 @@ def elevate_quadratic(p0, p1, p2, _1_3=1 / 3, _2_3=2 / 3):
prod_ratio=cython.double, prod_ratio=cython.double,
sum_ratio=cython.double, sum_ratio=cython.double,
ratio=cython.double, ratio=cython.double,
t=cython.double,
p0=cython.complex, p0=cython.complex,
p1=cython.complex, p1=cython.complex,
p2=cython.complex, p2=cython.complex,
@ -263,6 +264,8 @@ Solution = namedtuple("Solution", ["num_points", "error", "start_index", "is_cub
p1=cython.complex, p1=cython.complex,
p2=cython.complex, p2=cython.complex,
p3=cython.complex, p3=cython.complex,
v=cython.complex,
u=cython.complex,
) )
def spline_to_curves(q, costs, tolerance=0.5, all_cubic=False): def spline_to_curves(q, costs, tolerance=0.5, all_cubic=False):
""" """