diff options
author | simon | 2009-08-04 11:52:49 +0000 |
---|---|---|
committer | simon | 2009-08-04 11:52:49 +0000 |
commit | be8c66b26fa69a8078ee369f0af5fb9372f95293 (patch) | |
tree | d3574f2f85042a199d5455221f58b23f05d5e394 /src/c/statisticsFunctions/meanf/cmeanfcs.c | |
parent | ac2f79dabb674e9cf79e611c19b3acd2d98a9831 (diff) | |
download | scilab2c-be8c66b26fa69a8078ee369f0af5fb9372f95293.tar.gz scilab2c-be8c66b26fa69a8078ee369f0af5fb9372f95293.tar.bz2 scilab2c-be8c66b26fa69a8078ee369f0af5fb9372f95293.zip |
added case where second input of meanf is complex
updated the header and interface
added functiosn for the new cases
update INIT_FillSCI2LibCDirs
changing the unit test in order to test the new cases
Diffstat (limited to 'src/c/statisticsFunctions/meanf/cmeanfcs.c')
-rw-r--r-- | src/c/statisticsFunctions/meanf/cmeanfcs.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/c/statisticsFunctions/meanf/cmeanfcs.c b/src/c/statisticsFunctions/meanf/cmeanfcs.c new file mode 100644 index 00000000..d7d1a76d --- /dev/null +++ b/src/c/statisticsFunctions/meanf/cmeanfcs.c @@ -0,0 +1,25 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2008 - INRIA - Allan SIMON + * + * 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 + * + */ + + +#include "meanf.h" +#include "zeros.h" +#include <malloc.h> + +floatComplex cmeanfcs (floatComplex* in1 ,int lines , int columns , float* in2) + { + float* ZEROS; + ZEROS=malloc((unsigned int)(lines*columns*sizeof(float))); + szerosa(ZEROS,lines,columns); + + return cmeanfa(in1, lines*columns , FloatComplexMatrix(in2,ZEROS,lines*columns)); + } |