I have a function that take p as a parameter, p is a 2X3X3 list,
( a 2X3X3 list can like { {{2,3},{1,2.},{1,1.}}, {{2,3.},{1,2},{1,1}}, {{2,3},{1,2},{1,1}} } )
the function just as:
func[p_]:= Module[{}, {Main Fuction} ];
If I want to use Complie Function:
func= Compile[{p,_Real,???},
Module[{}, {Main Fuction} ]
];
How do I define ??? (above)


???isLength@Dimensions[p]. In this case, 3. – Oleksandr R. Jul 25 '14 at 11:31TensorRankmyself. :^) – Mr.Wizard Jul 25 '14 at 11:32Compileisn't a panacea for speed, it'll lead to more limitation in programming and may bring you endless grief indeed. Have you already read this and this post? – xzczd Jul 25 '14 at 11:48