I am writing the initialization part of my julia program and I want to define functions that depend on parameters already defined.
I am using @generated for the definition of the function.
Then I have to use precompile() for making the solve thing happening at this stage:
@generated function my_fun(x) computed_results = solve(BIG_PROBLEM) return :($computed_results[x]) end precompile(my_fun,(Int64,))
Is there another way to do this?
Why precompile needs the type tuple also if I annotate the arguments?
Why I need to provide the type tuple to precompile also if
x is not used in the expression interpolation?