Hello every one, I am new to the forum and have limited C++ knowledge but I have plenty of guts and many questions, I need some help if you can spare the time....
I am working on a project in which calls successively a function to which builds a matrix evaluated at a certain value, lets say: void function(&A,N,M,x), where N and M are the # of row/column specifiers and x the evaluation variable and A being the memory allocated array(my own class definition). Each array index pair represents a different polynomial function of x. I am looking to reduce the overhead of my existing code (which calls this function many times). What I want is to build an array (just once) with each array component having a different polynomial as a function of x, then throughout my code evaluate different array members for different x values, hence keeping me from recalling a function in which builds the whole array over again.
//Re-stating
I could just call (or point to) the array index A(k,p) at a certain value of x(i) (where x(1) != x(2) != x(3)...and so on) instead of having to re-use a function call to build the whole array over in which that whole array is evaluated at x and thereby waisting memory/time due to the fact that at that x(i) I just needed one array component evaluated at that x(i) . I am sure some one who has more knowledge can let me in on how this can be done......
I hope I was clear
Thanks
BW