From b7a3dd21939af365c7e61d1ced02e6586f3cb834 Mon Sep 17 00:00:00 2001 From: torset Date: Thu, 11 Dec 2008 13:07:51 +0000 Subject: Update chol files --- src/matrixOperations/chol/dchola.c | 54 +++++++++++++++++++++++++++++--------- 1 file changed, 41 insertions(+), 13 deletions(-) (limited to 'src/matrixOperations/chol/dchola.c') diff --git a/src/matrixOperations/chol/dchola.c b/src/matrixOperations/chol/dchola.c index 1ea76ba6..918c790a 100644 --- a/src/matrixOperations/chol/dchola.c +++ b/src/matrixOperations/chol/dchola.c @@ -11,25 +11,53 @@ */ +#ifndef WITHOUT_LAPACK +#include "lapack.h" +#else +#include "math.h" +#endif #include "chol.h" -#include #include - -void dchola(double * in, int size, double *U){ +void dchola(double * in, int size, double *out){ /* param in : input matrix (square matrix) param size : number of rows or columns param U : output upper triangular matrix */ - double* tmp; - int status = 0; - int i; + +#ifndef WITHOUT_LAPACK + int i=0,j=0,info=0; + + for (i=0;i