Hi,
Is it possible to instruct Compile
to take a list as arguments without having to hardcode each individual component of the list?
For example, suppose I want to take the dot product of a matrix and a vector:
Compile[{a,b,c,d,e,f,g},{{a,b},{c,d}}.{f,g}]
would do the trick, but notice the level of detail that I have to specify. Moreover, what if I do not know the dimension of the list I will feed to this function?
I guess a second-best solution would be to use meta functions inside Compile, something like
myComp[list1,list2]:=Compile[<some function that "separates" the elements from the lists>,<operation>]
Any guesses on what those meta functions should be?