sdp
12-08-2006, 01:51 AM
Hello everyone. I am really new in C++ and would appreciate some help with a small problem.
I am using the matrix definition Mat_DP a(Vector,i,j); that constructs a matrix from a previously defined "Vector".
However I need to change the number of elements in the vector according to some problems specifications. For example I need to use:
vector.insert(p, vector2.begin(), vector2.end());
but when I build the file I have an error saying the matrix type Mat_DP is defined of const type. I would like to know if someone knows how to change this parameter in the nr.h file hopefully without affecting the stability of the program.
Thank you very much
SDP
I am using the matrix definition Mat_DP a(Vector,i,j); that constructs a matrix from a previously defined "Vector".
However I need to change the number of elements in the vector according to some problems specifications. For example I need to use:
vector.insert(p, vector2.begin(), vector2.end());
but when I build the file I have an error saying the matrix type Mat_DP is defined of const type. I would like to know if someone knows how to change this parameter in the nr.h file hopefully without affecting the stability of the program.
Thank you very much
SDP