I am building a list of function references, for functions that return multiple values in the following way:
return 2.1, 3.1, 4.5, 2.1, 1.0 #
I have however trouble to create the correct function signature in order to create the list of function references. At the moment, I use
fn = numba.typed.List.empty_list(
types.ListType(types.float64)( # return value
types.int64, # i
types.ListType(types.float64[::1]), # a1
types.ListType(types.float64[::1]), # a2
types.ListType(types.float64),
).as_type()
)
but that fails. The actual return type is UniTuple(float64 x 5), but I could not figure out how to specify this in the above signature
What is the best way to return multiple values list from a jitted function, and how do I specify this in the signature of a list of function references?
For context, this is in relation to an earlier (solved) post List mistaken as list when creating list of function references