diff options
author | simon | 2009-08-24 10:01:41 +0000 |
---|---|---|
committer | simon | 2009-08-24 10:01:41 +0000 |
commit | c3c4d2540b7fd98af420da94dc9979d5c522cd02 (patch) | |
tree | 39c57d84b5f65f8fcd54c382229ed1eb9b6de361 /src/c/operations/multiplication/cmulcsv.c | |
parent | a2c6ed14519f019b157eac1aac66d9528dd9208a (diff) | |
download | scilab2c-c3c4d2540b7fd98af420da94dc9979d5c522cd02.tar.gz scilab2c-c3c4d2540b7fd98af420da94dc9979d5c522cd02.tar.bz2 scilab2c-c3c4d2540b7fd98af420da94dc9979d5c522cd02.zip |
added mixed type function for matrix multiplication
updated the header
Diffstat (limited to 'src/c/operations/multiplication/cmulcsv.c')
-rw-r--r-- | src/c/operations/multiplication/cmulcsv.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/c/operations/multiplication/cmulcsv.c b/src/c/operations/multiplication/cmulcsv.c new file mode 100644 index 00000000..1d17bb95 --- /dev/null +++ b/src/c/operations/multiplication/cmulcsv.c @@ -0,0 +1,25 @@ +/* + * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab + * Copyright (C) 2008-2009 - 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 <malloc.h> +#include "zeros.h" +#include "multiplication.h" + +floatComplex cmulcsv (floatComplex* in1, float* in2, int size) + { + float* ZEROS; + ZEROS=malloc((unsigned int)(size)*sizeof(float)); + szerosa(ZEROS,size , 1); + + return cmulv(in1, FloatComplexMatrix(in2,ZEROS,size), size ); + } |