Author: bugman
Date: Tue Aug 26 16:57:57 2014
New Revision: 25295
URL: http://svn.gna.org/viewcvs/relax?rev=25295&view=rev
Log:
Changed the array declarations in the target_functions/c_chi2 C file and header.
Instead of using the pointer format of *xyz, the array format of xyz[] is now
being used. These are
equivalent and the later is more obvious that this is an array.
Modified:
trunk/target_functions/c_chi2.c
trunk/target_functions/c_chi2.h
Modified: trunk/target_functions/c_chi2.c
URL:
http://svn.gna.org/viewcvs/relax/trunk/target_functions/c_chi2.c?rev=25295&r1=25294&r2=25295&view=diff
==============================================================================
--- trunk/target_functions/c_chi2.c (original)
+++ trunk/target_functions/c_chi2.c Tue Aug 26 16:57:57 2014
@@ -25,7 +25,7 @@
#define square(x) ((x)*(x))
-double chi2(double *values, double *sd, double *back_calc, int num_times) {
+double chi2(double values[], double sd[], double back_calc[], int num_times) {
/* Function to calculate the chi-squared value.
The chi-sqared equation
Modified: trunk/target_functions/c_chi2.h
URL:
http://svn.gna.org/viewcvs/relax/trunk/target_functions/c_chi2.h?rev=25295&r1=25294&r2=25295&view=diff
==============================================================================
--- trunk/target_functions/c_chi2.h (original)
+++ trunk/target_functions/c_chi2.h Tue Aug 26 16:57:57 2014
@@ -24,7 +24,7 @@
/* The maximum number of data points */
#define MAX_DATA 50
-double chi2(double *values, double *sd, double *back_calc, int num_times);
+double chi2(double values[], double sd[], double back_calc[], int num_times);
void dchi2(double dchi2[], double data[], double back_calc_vals[], double
back_calc_grad[][MAX_DATA], double errors[], int num_times, int M);
#endif
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits