diff options
author | torset | 2009-02-06 14:46:23 +0000 |
---|---|---|
committer | torset | 2009-02-06 14:46:23 +0000 |
commit | 527a7f7233c41e04fef5cb4aadc1885ba5a8f4ff (patch) | |
tree | 78a03776c76d6e1e6d037fec1e5766af75f28997 | |
parent | f737d894588ca911f4316540c3c57b81c28a799c (diff) | |
download | scilab2c-527a7f7233c41e04fef5cb4aadc1885ba5a8f4ff.tar.gz scilab2c-527a7f7233c41e04fef5cb4aadc1885ba5a8f4ff.tar.bz2 scilab2c-527a7f7233c41e04fef5cb4aadc1885ba5a8f4ff.zip |
Add chol interface and modify chol header
-rw-r--r-- | src/matrixOperations/includes/chol.h | 4 | ||||
-rw-r--r-- | src/matrixOperations/interfaces/int_chol.h | 34 |
2 files changed, 36 insertions, 2 deletions
diff --git a/src/matrixOperations/includes/chol.h b/src/matrixOperations/includes/chol.h index 54daf305..4b2655fc 100644 --- a/src/matrixOperations/includes/chol.h +++ b/src/matrixOperations/includes/chol.h @@ -25,11 +25,11 @@ void dchola(double *in, int size, double *out); float schols(float in); void schola(float *in, int size, float *out); -#define zchols(in) dchols(zreals(in)) +#define zchols(in) DoubleComplex(dchols(zreals(in)),0) void zchola (doubleComplex *in, int size, doubleComplex *out); -#define cchols(in) schols(creals(in)) +#define cchols(in) FloatComplex(schols(creals(in)),0) void cchola(floatComplex *in, int size, floatComplex *out); diff --git a/src/matrixOperations/interfaces/int_chol.h b/src/matrixOperations/interfaces/int_chol.h new file mode 100644 index 00000000..861ad4d1 --- /dev/null +++ b/src/matrixOperations/interfaces/int_chol.h @@ -0,0 +1,34 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Bruno JOFRET + * + * 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 + * + */ + +/* THIS IS AN AUTOMATICALLY GENERATED FILE : DO NOT EDIT BY HAND. */ + +#ifndef __INT_CHOL_H__ +#define __INT_CHOL_H__ + +#define s0chols0(in) schols(in) + +#define d0chold0(in) dchols(in) + +#define c0cholc0(in) cchols(in) + +#define z0cholz0(in) zchols(in) + +#define s2chols2(in,size,out) schola(in, size[0], out) + +#define d2chold2(in,size,out) dchola(in, size[0], out) + +#define c2cholc2(in,size,out) cchola(in, size[0], out) + +#define z2cholz2(in,size,out) zchola(in, size[0], out) + +#endif /* !__INT_CHOL_H__ */ |