summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/elementaryFunctions/interfaces
diff options
context:
space:
mode:
Diffstat (limited to '2.3-1/src/c/elementaryFunctions/interfaces')
-rw-r--r--2.3-1/src/c/elementaryFunctions/interfaces/int_ismatrix.h2
-rw-r--r--2.3-1/src/c/elementaryFunctions/interfaces/int_isvector.h8
-rw-r--r--2.3-1/src/c/elementaryFunctions/interfaces/int_nanmax.h27
-rw-r--r--2.3-1/src/c/elementaryFunctions/interfaces/int_pmodulo.h26
4 files changed, 59 insertions, 4 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_ismatrix.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_ismatrix.h
index 56dfc856..96352d13 100644
--- a/2.3-1/src/c/elementaryFunctions/interfaces/int_ismatrix.h
+++ b/2.3-1/src/c/elementaryFunctions/interfaces/int_ismatrix.h
@@ -21,6 +21,8 @@
#define g0ismatrixg0(in) gismatrixs(in)
#define z2ismatrixg0(in, size) zismatrixa(in)
#define z0ismatrixg0(in) zismatrixs(in)
+#define u162ismatrixg0(in, size) u16ismatrixa(in)
+#define u160ismatrixg0(in) u16ismatrixs(in)
#endif
diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_isvector.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_isvector.h
index 6d943bd3..a4edaea4 100644
--- a/2.3-1/src/c/elementaryFunctions/interfaces/int_isvector.h
+++ b/2.3-1/src/c/elementaryFunctions/interfaces/int_isvector.h
@@ -13,13 +13,13 @@
#ifndef __INT_ISVECTOR_H__
#define __INT_ISVECTOR_H__
-#define d2isvectorg0(in, size ) disvectora(in, size[0])
+#define d2isvectorg0(in, size ) disvectora(in, size[0], size[1])
#define d0isvectorg0(in) disvectors(in)
-#define s2isvectorg0(in , size) sisvectora(in, size[0])
+#define s2isvectorg0(in , size) sisvectora(in, size[0], size[1])
#define s0isvectorg0(in) sisvectors(in)
-#define g2isvectorg0(in, size) gisvectora(in, size[0])
+#define g2isvectorg0(in, size) gisvectora(in, size[0], size[1])
#define g0isvectorg0(in) gisvectors(in)
-#define z2isvectorg0(in, size) zisvectora(in , size[0])
+#define z2isvectorg0(in, size) zisvectora(in , size[0], size[1])
#define z0isvectorg0(in) zisvectors(in)
diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_nanmax.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_nanmax.h
new file mode 100644
index 00000000..dd3df71d
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/interfaces/int_nanmax.h
@@ -0,0 +1,27 @@
+ /*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: Abhinav Dronamraju
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+
+
+#ifndef __INT_NANMAX_H__
+#define __INT_NANMAX_H__
+
+#define d2nanmaxd0(in1, size) dnanmaxa(in1,size[0]* size[1])
+#define d2g2nanmaxd2(in1, size1, in2, size2, out) (in2[0]=='r') ? dnanmaxrowa(in1, size1[0], size1[1], out) : dnanmaxcola(in1, size1[0] , size1[1], out)
+
+#define s2nanmaxs0(in1, size) snanmaxa(in1,size[0]* size[1])
+#define s2g2nanmaxs2(in1, size1, in2, size2, out) (in2[0]=='r') ? snanmaxrowa(in1, size1[0], size1[1], out) : snanmaxcola(in1, size1[0] , size1[1], out)
+
+
+//#define i160i160pmoduloi160(in1, in2) i16pmodulos(in1,in2)
+//#define i162i162pmoduloi162(in1, size1, in2, size2, out) i16pmoduloa(in1,size1[0]*size1[1],in2, out)
+
+
+#endif
diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_pmodulo.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_pmodulo.h
new file mode 100644
index 00000000..72b12770
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/interfaces/int_pmodulo.h
@@ -0,0 +1,26 @@
+ /*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: Abhinav Dronamraju
+ Organization: FOSSEE, IIT Bombay
+ Email: toolbox@scilab.in
+*/
+
+
+
+#ifndef __INT_PMODULO_H__
+#define __INT_PMODULO_H__
+
+#define d0d0pmodulod0(in1, in2) dpmodulos(in1,in2)
+#define d2d2pmodulod2(in1, size1, in2, size2, out) dpmoduloa(in1,size1[0]*size1[1],in2, out)
+
+#define s0s0pmodulos0(in1, in2) spmodulos(in1,in2)
+#define s2s2pmodulos2(in1, size1, in2, size2, out) spmoduloa(in1,size1[0]*size1[1],in2, out)
+
+#define i160i160pmoduloi160(in1, in2) i16pmodulos(in1,in2)
+#define i162i162pmoduloi162(in1, size1, in2, size2, out) i16pmoduloa(in1,size1[0]*size1[1],in2, out)
+
+
+#endif