Author: bugman
Date: Tue Aug 26 18:31:30 2014
New Revision: 25307
URL: http://svn.gna.org/viewcvs/relax?rev=25307&view=rev
Log:
All of the C code chi-squared functions now have the array argument dimensions
explicitly declared.
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=25307&r1=25306&r2=25307&view=diff
==============================================================================
--- trunk/target_functions/c_chi2.c (original)
+++ trunk/target_functions/c_chi2.c Tue Aug 26 18:31:30 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[MAX_DATA], double sd[MAX_DATA], double
back_calc[MAX_DATA], int num_times) {
/* Function to calculate the chi-squared value.
The chi-sqared equation
@@ -61,7 +61,7 @@
}
-void dchi2(double dchi2[], double data[], double back_calc_vals[], double
back_calc_grad[][MAX_DATA], double errors[], int num_points, int num_params) {
+void dchi2(double dchi2[MAX_PARAMS], double data[MAX_DATA], double
back_calc_vals[MAX_DATA], double back_calc_grad[MAX_PARAMS][MAX_DATA], double
errors[MAX_DATA], int num_points, int num_params) {
/* Calculate the full chi-squared gradient.
The chi-squared gradient
Modified: trunk/target_functions/c_chi2.h
URL:
http://svn.gna.org/viewcvs/relax/trunk/target_functions/c_chi2.h?rev=25307&r1=25306&r2=25307&view=diff
==============================================================================
--- trunk/target_functions/c_chi2.h (original)
+++ trunk/target_functions/c_chi2.h Tue Aug 26 18:31:30 2014
@@ -26,8 +26,8 @@
#define RELAX_C_CHI2
/* Define all of the functions. */
-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);
+double chi2(double values[MAX_DATA], double sd[MAX_DATA], double
back_calc[MAX_DATA], int num_times);
+void dchi2(double dchi2[MAX_PARAMS], double data[MAX_DATA], double
back_calc_vals[MAX_DATA], double back_calc_grad[MAX_PARAMS][MAX_DATA], double
errors[MAX_DATA], int num_times, int M);
void d2chi2(double d2chi2[MAX_PARAMS][MAX_PARAMS], double data[MAX_DATA],
double back_calc_vals[MAX_DATA], double back_calc_grad[MAX_PARAMS][MAX_DATA],
double back_calc_hess[MAX_PARAMS][MAX_PARAMS][MAX_DATA], double
errors[MAX_DATA], 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