In a multistep code, I am trying to use module to define a function such that (working example)
CR[i_] := {{i*5, 3, 5, i, 2 i, 5 i}, {1, 2, 3, 4, 5, 6}}
A[EF_] := Module[{cr = CR[EF]}, c[t_] = ParallelTable[cr[[t, m]], {m, 1, 6}]; {c[1], c[2]}]
A[1]
by using this expression, I am getting my o/p in about 14 secs. However, along with the o/p, there also comes an error message 'Part::pkspec1: The expression t$ cannot be used as a part specification.'
But, when I replace equal to (=) by set delayed (:=) in the definition of c[t], error message is gone, but I get my o/p in about 4 minutes instead of 14 secs.
So, my question is how to go about it..so that I get my o/p in reasonable time, but without any error message. Will appreciate any suggestion.