summaryrefslogtreecommitdiff
path: root/2.3-1/src/c/elementaryFunctions/interfaces
diff options
context:
space:
mode:
authorAbhinav Dronamraju2017-07-10 21:01:37 +0530
committerAbhinav Dronamraju2017-07-10 21:01:37 +0530
commitc1874d367d68cb47b82cc7a1173caaf38e9e3d68 (patch)
tree2e0e39079e6859fac430136d2d86dff6a8a1828c /2.3-1/src/c/elementaryFunctions/interfaces
parent441f3e61481c1de99bbc408292224eb28a62bea7 (diff)
downloadScilab2C-c1874d367d68cb47b82cc7a1173caaf38e9e3d68.tar.gz
Scilab2C-c1874d367d68cb47b82cc7a1173caaf38e9e3d68.tar.bz2
Scilab2C-c1874d367d68cb47b82cc7a1173caaf38e9e3d68.zip
Nthroot added
Diffstat (limited to '2.3-1/src/c/elementaryFunctions/interfaces')
-rw-r--r--2.3-1/src/c/elementaryFunctions/interfaces/int_iscolumn.h3
-rw-r--r--2.3-1/src/c/elementaryFunctions/interfaces/int_isrow.h3
-rw-r--r--2.3-1/src/c/elementaryFunctions/interfaces/int_issquare.h25
-rw-r--r--2.3-1/src/c/elementaryFunctions/interfaces/int_nthroot.h23
4 files changed, 54 insertions, 0 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_iscolumn.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_iscolumn.h
index f5e8a7de..e1011d72 100644
--- a/2.3-1/src/c/elementaryFunctions/interfaces/int_iscolumn.h
+++ b/2.3-1/src/c/elementaryFunctions/interfaces/int_iscolumn.h
@@ -21,6 +21,9 @@
#define g0iscolumng0(in) giscolumns(in)
#define z2iscolumng0(in,size) ziscolumna(in , size[1])
#define z0iscolumng0(in) ziscolumns(in)
+#define u162iscolumng0(in,size) u16iscolumna(in , size[1])
+#define u160iscolumng0(in) u16iscolumns(in)
+
#endif
diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_isrow.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_isrow.h
index cc6be37c..9298de9d 100644
--- a/2.3-1/src/c/elementaryFunctions/interfaces/int_isrow.h
+++ b/2.3-1/src/c/elementaryFunctions/interfaces/int_isrow.h
@@ -21,6 +21,9 @@
#define g0isrowg0(in) gisrows(in)
#define z2isrowg0(in, size) zisrowa(in , size[0])
#define z0isrowg0(in) zisrows(in)
+#define u162isrowg0(in, size) u16isrowa(in , size[0])
+#define u160isrowg0(in) u16isrows(in)
+
#endif
diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_issquare.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_issquare.h
new file mode 100644
index 00000000..05357881
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/interfaces/int_issquare.h
@@ -0,0 +1,25 @@
+ /*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_ISSQUARE_H__
+#define __INT_ISSQUARE_H__
+
+#define d2issquareg0(in, size ) dissquarea(in, size[0], size[1])
+#define d0issquareg0(in) dissquares(in)
+#define s2issquareg0(in , size) sissquarea(in, size[0], size[1])
+#define s0issquareg0(in) sissquares(in)
+#define g2issquareg0(in, size) gissquarea(in, size[0], size[1])
+#define g0issquareg0(in) gissquares(in)
+#define z2issquareg0(in, size) zissquarea(in , size[0], size[1])
+#define z0issquareg0(in) zissquares(in)
+
+#endif
diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_nthroot.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_nthroot.h
new file mode 100644
index 00000000..aa48fcc9
--- /dev/null
+++ b/2.3-1/src/c/elementaryFunctions/interfaces/int_nthroot.h
@@ -0,0 +1,23 @@
+ /*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_NTHROOT_H__
+#define __INT_NTHROOT_H__
+
+#define d2d2nthrootd2(in1, size1, in2, size2, out) dnthroota(in1, size1[0], size1[1], in2, size2[0], size2[1], out)
+#define d2d0nthrootd2(in1, size1, in2, out) dnthroot1a(in1, size1[0], size1[1], in2, out)
+#define d0d0nthrootd0(in1, in2) dnthroots(in1, in2)
+#define s2s2nthrootd2(in1, size1, in2, size2, out) snthroota(in1, size1[0], size1[1], in2, size2[0], size2[1], out)
+#define s2s0nthrootd2(in1, size1, in2, out) snthroot1a(in1, size1[0], size1[1], in2, out)
+#define s0s0nthrootd0(in1, in2) snthroots(in1, in2)
+
+#endif