### Cannot convert double to double*

I am getting an error for two different lines in my code. Both stating I cannot convert double to double* for argument 2 in void TA and void TA_per. I understand what it means but I do not see the issue?

 ``123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105`` `````` #include #include #include #include #include #include #include #include #include /* Subroutines ====================================================== */ void TA(int N, double *b, double *a, double *c,double *x, double *q) { int i; static double *l=NULL,*u=NULL,*d=NULL,*y=NULL; if(l == NULL) { l = new double[N]; u = new double[N]; d = new double[N]; y = new double[N]; } /* LU Decomposition */ d[0] = a[0]; u[0] = c[0]; for(i=0;i=0;i--) x[i] = (y[i] - u[i]*x[i+1])/d[i]; return; } void TA_per(int N, double *b, double *a, double *c,double *x, double *q) { int i; double *x1,*x2,*q2; x1 = new double[N-1]; x2 = new double[N-1]; q2 = new double[N-1]; /* Prepare secondary q */ for(i=0;i
Those functions expect you to pass an array of values (or several), not just a single value.
That worked thank you.
Topic archived. No new replies allowed.