diff options
author | Pjotr Prins | 2017-08-02 09:50:18 +0000 |
---|---|---|
committer | Pjotr Prins | 2017-08-02 09:50:18 +0000 |
commit | 1e49e7a27d0f4b811a87c64db1e875779766f6b0 (patch) | |
tree | 8f7581bec20eb815848d02f926cb949ed038008b | |
parent | 3935ba39d30666dd7d4a831155631847c77b70c4 (diff) | |
download | pangemma-1e49e7a27d0f4b811a87c64db1e875779766f6b0.tar.gz |
Added section on contributing and coding style and fixed compilation
-rw-r--r-- | README.md | 10 | ||||
-rw-r--r-- | src/logistic.cpp | 3 |
2 files changed, 12 insertions, 1 deletions
@@ -191,6 +191,16 @@ last tested using Eigen version 3.3.3.) More information on source code, dependencies and installation can be found in [INSTALL.md](INSTALL.md). +## Contributing + +GEMMA uses the [LLVM style](http://llvm.org/docs/CodingStandards.html) +for C++ code. You should set your editor to replace tabs with spaces +and 2 spaces of indentation. Use + + clang-format -style=LLVM -i *.cpp *.h + +to validate the coding style. + ## Credits The *GEMMA* software was developed by: diff --git a/src/logistic.cpp b/src/logistic.cpp index 2308de7..2dd0402 100644 --- a/src/logistic.cpp +++ b/src/logistic.cpp @@ -1,4 +1,3 @@ -#include "logistic.h" #include <gsl/gsl_linalg.h> #include <gsl/gsl_matrix.h> #include <gsl/gsl_multimin.h> @@ -7,6 +6,8 @@ #include <math.h> #include <stdio.h> +#include "logistic.h" + // I need to bundle all the data that goes to the function to optimze // together. typedef struct { |