aboutsummaryrefslogtreecommitdiff
path: root/src/mathfunc.h
diff options
context:
space:
mode:
authorPjotr Prins2017-10-13 12:28:26 +0000
committerPjotr Prins2017-10-13 15:27:24 +0000
commita610dd723a233aed1abe31aa32e3137b23b5f983 (patch)
tree66172cf10d0d85f5a61219c1b7b074cbadb45575 /src/mathfunc.h
parent25ad9756ebecfdb2f01b6f87c35bd731e3a3186d (diff)
downloadpangemma-a610dd723a233aed1abe31aa32e3137b23b5f983.tar.gz
OpenBlas: preparing for dgemm use
Diffstat (limited to 'src/mathfunc.h')
-rw-r--r--src/mathfunc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mathfunc.h b/src/mathfunc.h
index 6e20b37..804bc20 100644
--- a/src/mathfunc.h
+++ b/src/mathfunc.h
@@ -27,7 +27,7 @@
#define EIGEN_MINVALUE 1e-10
using namespace std;
-using namespace Eigen;
+
bool has_nan(const vector<double> v);
@@ -43,6 +43,7 @@ bool isMatrixPositiveDefinite(const gsl_matrix *G);
bool isMatrixIllConditioned(const gsl_vector *eigenvalues, double max_ratio=CONDITIONED_MAXRATIO);
bool isMatrixSymmetric(const gsl_matrix *G);
gsl_vector *getEigenValues(const gsl_matrix *G);
+double sum(const double *m, size_t rows, size_t cols);
double SumVector(const gsl_vector *v);
double CenterVector(gsl_vector *y);
void CenterVector(gsl_vector *y, const gsl_matrix *W);
@@ -57,6 +58,6 @@ void KroneckerSym(const gsl_matrix *K, const gsl_matrix *V, gsl_matrix *H);
double UcharToDouble02(const unsigned char c);
unsigned char Double02ToUchar(const double dosage);
void uchar_matrix_get_row(const vector<vector<unsigned char>> &X,
- const size_t i_row, VectorXd &x_row);
+ const size_t i_row, Eigen::VectorXd &x_row);
#endif