I have a function that extracts a numerical value from two vectors, written as
Spa[i_,j_]:=Flatten[LaU[i].LaD[j]][]. (Note, I'm sure that this isn't the most efficient way to solve this problem but it works for my uses). In the next stage of my process, I'm having to calculate Spa functions when the argument needs something other than
LaU, like something called
QLaU, which is defined in a similar process (exact same dimensions etc).
Instead of manually creating a separate function like e.g
SpaQ[i_,j_] :=Flatten[QLaU.LaD][], I'm hoping to use a
Module function to simply combine the two together, and have MMA recognise the type of function. Is this possible within the scope of
Module? I'm essentially trying to put a couple of functions within the single overall
Spa function, to keep the final results looking similar.