summaryrefslogtreecommitdiff
path: root/src/c/operations/multiplication/cmulcsv.c
diff options
context:
space:
mode:
authorsimon2009-08-24 10:01:41 +0000
committersimon2009-08-24 10:01:41 +0000
commitc3c4d2540b7fd98af420da94dc9979d5c522cd02 (patch)
tree39c57d84b5f65f8fcd54c382229ed1eb9b6de361 /src/c/operations/multiplication/cmulcsv.c
parenta2c6ed14519f019b157eac1aac66d9528dd9208a (diff)
downloadscilab2c-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.c25
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 );
+ }