summaryrefslogtreecommitdiff
path: root/2.3-1/interfaces/int_kron.h
diff options
context:
space:
mode:
authorAnkit Raj2017-06-21 11:00:07 +0530
committerAnkit Raj2017-06-21 11:00:07 +0530
commit6e4535ef3a2c3ec3a4c857673a43938fd04cba80 (patch)
treefe54b879807b9983de491c73b3708c07129c51db /2.3-1/interfaces/int_kron.h
parent02a004ea1500c403ac1a18a52aaf79aaeb7280ed (diff)
downloadScilab2C-6e4535ef3a2c3ec3a4c857673a43938fd04cba80.tar.gz
Scilab2C-6e4535ef3a2c3ec3a4c857673a43938fd04cba80.tar.bz2
Scilab2C-6e4535ef3a2c3ec3a4c857673a43938fd04cba80.zip
Functions added - string related and signal processing
Diffstat (limited to '2.3-1/interfaces/int_kron.h')
-rw-r--r--2.3-1/interfaces/int_kron.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/2.3-1/interfaces/int_kron.h b/2.3-1/interfaces/int_kron.h
new file mode 100644
index 00000000..a6fbaab1
--- /dev/null
+++ b/2.3-1/interfaces/int_kron.h
@@ -0,0 +1,43 @@
+/* Copyright (C) 2016 - IIT Bombay - FOSSEE
+
+ 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
+ Author: Siddhesh Wani
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+#ifndef __INT_KRON_H__
+#define __INT_KRON_H__
+
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#define d0d0krond0(in1, in2) in1*in2
+#define s0s0krons0(in1, in2) in1*in2
+
+#define d0d2krond2(in1, in2, size2, out) {int i; \
+ for(i=0;i < size2[0]*size2[1];i++) out[i] = in2[i]*in1;}
+#define s0s2krons2(in1, in2, size2, out) {int i; \
+ for(i=0;i < size2[0]*size2[1];i++) out[i] = in2[i]*in1;}
+
+#define d2d0krond2(in1, size1, in2, out) {int i; \
+ for(i=0;i < size1[0]*size1[1];i++) out[i] = in1[i]*in2;}
+#define s2s0krons2(in1, in2, size2, out) {int i; \
+ for(i=0;i < size2[0]*size2[1];i++) out[i] = in2[i]*in1;}
+
+#define d2d2krond2(in1, size1, in2, size2, out) dkrona(in1, size1[0], size1[1], \
+ in2, size2[0], size2[1], out);
+#define s2s2krons2(in1, size1, in2, size2, out) skrona(in1, size1[0], size1[1], \
+ in2, size2[0], size2[1], out);
+
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
+#endif /*__INT_KRON_H__*/