Matrix preallocation of functions
I'm handling matrices that contain large numbers of functions that are symbolically evaluated, and then used to create differential equations for a solver such as Radau to solve.
I want to preallocate the matrices in order to speed up the rate that my code executes at, since there are a lot of these functions (about 700).
I understand how to preallocate normal matrices of actual number values via this method, where M is a 500 X 1 matrix:
M[500,1:=0
...and then you would define M via a file upload, or manual entering of data, via calculations from other matrices, or from a programming loop.
But...if I want a matrix of functions, how do I do it?
If M is a function of x for example, and I enter this into Matcad:
M(x)[500,1:=0
then Mathcad makes the M red, and says "a name is required here." Also, even if I use an 'x' instead of a zero to define the preallocation, it still gives me the same warning.
Does anyone know how or if matrices of functions can be preallocated?

