I would like to write a compile function with a Matrix of unknown size(at the moment of the compilation) similar to :
Fx = Compile[{{matrix,_Real},{size,_Integer},Block[{M},
M = Table[{0,0},size];
.... rest of the function ....
];];
The problem is that the compilation failed because the function Table requires a value and not a variable. I absolutely need to initialize this matrix of zeros in the rest of the code, and I want a Compile function in order to save time. Does someone know how to fix this problem?
Thank’s in advance
Q.A.