diff options
author | jdavidberger <j.david.berger@gmail.com> | 2018-04-11 10:51:45 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-11 10:51:45 -0600 |
commit | 0cd7e8d9783e8cdff7be99a330b2096a0648b192 (patch) | |
tree | 09fa3f286dc20d87448220a4f7800fd0e3f04087 /redist | |
parent | 7af7eec04bc03719aa6b2879fe599ff0cf43e032 (diff) | |
parent | 8469de349450efb8e71fd0735bfe2dd6d3c62063 (diff) | |
download | libsurvive-0cd7e8d9783e8cdff7be99a330b2096a0648b192.tar.gz libsurvive-0cd7e8d9783e8cdff7be99a330b2096a0648b192.tar.bz2 |
Merge pull request #123 from cnlohr/simple_api
Simple async api
Diffstat (limited to 'redist')
-rw-r--r-- | redist/linmath.h | 2 | ||||
-rw-r--r-- | redist/mpfit/mpfit.h | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/redist/linmath.h b/redist/linmath.h index 29db5a9..e46bbd4 100644 --- a/redist/linmath.h +++ b/redist/linmath.h @@ -7,11 +7,13 @@ extern "C" { #endif +#ifndef LINMATH_EXPORT #ifdef _WIN32 #define LINMATH_EXPORT extern __declspec(dllexport) #else #define LINMATH_EXPORT __attribute__((visibility("default"))) #endif +#endif // Yes, I know it's kind of arbitrary. #define DEFAULT_EPSILON 0.001 diff --git a/redist/mpfit/mpfit.h b/redist/mpfit/mpfit.h index 67bf635..6a39ff1 100644 --- a/redist/mpfit/mpfit.h +++ b/redist/mpfit/mpfit.h @@ -88,9 +88,9 @@ struct mp_config_struct { 1 = yes, user scale values in diag; 0 = no, variables scaled internally (Default) */ int nofinitecheck; /* Disable check for infinite quantities from user? - 0 = do not perform check (Default) - 1 = perform check - */ + 0 = do not perform check (Default) + 1 = perform check + */ mp_iterproc iterproc; /* Placeholder pointer - must set to 0 */ }; @@ -108,11 +108,11 @@ struct mp_result_struct { int nfunc; /* Number of residuals (= num. of data points) */ double *resid; /* Final residuals - nfunc-vector, or 0 if not desired */ + nfunc-vector, or 0 if not desired */ double *xerror; /* Final parameter uncertainties (1-sigma) npar-vector, or 0 if not desired */ double *covar; /* Final parameter covariance matrix - npar x npar array, or 0 if not desired */ + npar x npar array, or 0 if not desired */ char version[20]; /* MPFIT version string */ }; |