From bd770cebb5b4f3b58b01ea27cf5593880e090d33 Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Thu, 11 Jun 2015 14:03:41 +0100 Subject: [PATCH] code cleaning --- build.sh | 12 ++++++------ lib/Derivative.cpp | 1 - utils/sample_read.cpp | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/build.sh b/build.sh index bb094cc..d15ae5b 100755 --- a/build.sh +++ b/build.sh @@ -9,12 +9,12 @@ case $1 in make -j8 echo '-- installing...' make uninstall 1>/dev/null - make install 1>/dev/null - if [[ `basename \`pwd\`` == "lib" ]] - then - echo '-- creating debug symbols...' - dsymutil .libs/libLatAnalyze.0.dylib -o ${PREFIX}/lib/libLatAnalyze.0.dylib.dSYM - fi;; + make install 1>/dev/null;; +# if [[ `basename \`pwd\`` == "lib" ]] +# then +# echo '-- creating debug symbols...' +# dsymutil .libs/libLatAnalyze.0.dylib -o ${PREFIX}/lib/libLatAnalyze.0.dylib.dSYM +# fi;; 'clean') echo '-- cleaning...' make -j8 clean;; diff --git a/lib/Derivative.cpp b/lib/Derivative.cpp index 95ce472..4aa259a 100644 --- a/lib/Derivative.cpp +++ b/lib/Derivative.cpp @@ -20,7 +20,6 @@ #include #include #include -#include using namespace std; using namespace Latan; diff --git a/utils/sample_read.cpp b/utils/sample_read.cpp index 0903c4f..e8e458c 100644 --- a/utils/sample_read.cpp +++ b/utils/sample_read.cpp @@ -19,7 +19,6 @@ #include #include -#include using namespace std; using namespace Latan; @@ -29,13 +28,14 @@ int main(int argc, char *argv[]) if (argc != 2) { cerr << "usage: " << argv[0] << " " << endl; + return EXIT_FAILURE; } string fileName = argv[1]; cout << "-- loading sample from '" << fileName << "'..." << endl; - const DMatSample &s = Io::load(fileName); + DMatSample s = Io::load(fileName); cout << scientific; cout << "central value:\n" << s[central] << endl; cout << "standard deviation:\n" << s.variance().cwiseSqrt() << endl;