From 89ce1d449dde70966962946e197c576cf350dc31 Mon Sep 17 00:00:00 2001 From: jofret Date: Tue, 28 Apr 2009 06:55:15 +0000 Subject: Moving source code --- src/matrixOperations/determ/ddeterma.c | 95 ---------------------------------- 1 file changed, 95 deletions(-) delete mode 100644 src/matrixOperations/determ/ddeterma.c (limited to 'src/matrixOperations/determ/ddeterma.c') diff --git a/src/matrixOperations/determ/ddeterma.c b/src/matrixOperations/determ/ddeterma.c deleted file mode 100644 index 4f8046bb..00000000 --- a/src/matrixOperations/determ/ddeterma.c +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2008 - INRIA - Arnaud TORSET - * - * This file must be used under the terms of the CeCILL. - * This source file is licensed as described in the file COPYING, which - * you should have received as part of this distribution. The terms - * are also available at - * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt - * - */ - - -#ifndef WITHOUT_LAPACK -#include "lapack.h" -#endif -#include "determ.h" -#include -#include "lapack.h" -#include - - -double ddeterma(double * in, int size){ -#ifndef WITHOUT_LAPACK - int i=0, info=0; - double out=0; - double *inCopy=NULL; - int* tmp=NULL; - - /*Calculation of the determinant*/ - switch (size){ - case 2 : out = in[0]*in[3]-in[1]*in[2]; - break; - case 3 : /*regle de Sarrus*/ - out = in[0]*in[4]*in[8]+in[1]*in[5]*in[6]+in[2]*in[3]*in[7] - -in[0]*in[5]*in[7]-in[1]*in[3]*in[8]-in[2]*in[4]*in[6]; - break; - default : - - /*Copy the input matrix*/ - inCopy=(double*)malloc((unsigned int)(size*size)*sizeof(double)); - for (i=0;i