tremove residual function from arrays - granular - granular dynamics simulation | |
git clone git://src.adamsgaard.dk/granular | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit b6248f108d84c1068e84381d5a06a34522ebdc82 | |
parent 8f579780a9ac18da8a43ef60385fdd81da125103 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 18 Mar 2021 08:44:31 +0100 | |
remove residual function from arrays | |
Diffstat: | |
M arrays.c | 6 ------ | |
M arrays.h | 2 -- | |
2 files changed, 0 insertions(+), 8 deletions(-) | |
--- | |
diff --git a/arrays.c b/arrays.c | |
t@@ -314,9 +314,3 @@ euclidean_distance(const double *a, const double *b, const… | |
return sqrt(out); | |
} | |
- | |
-double | |
-residual(const double new_val, const double old_val) | |
-{ | |
- return (new_val - old_val) / (old_val + 1e-16); | |
-} | |
diff --git a/arrays.h b/arrays.h | |
t@@ -54,6 +54,4 @@ double * normalize(const double *in, const int n); | |
double euclidean_norm(const double *a, const int n); | |
double euclidean_distance(const double *a, const double *b, const int n); | |
-double residual(const double new_val, const double old_val); | |
- | |
#endif |