From c7d123014c05daaa6c7ce32bc5e86e5f3e7e4692 Mon Sep 17 00:00:00 2001 From: Abhinav Dronamraju Date: Mon, 10 Jul 2017 21:01:37 +0530 Subject: Nthroot added --- .../elementaryFunctions/interfaces/int_iscolumn.h | 3 +++ src/c/elementaryFunctions/interfaces/int_isrow.h | 3 +++ .../elementaryFunctions/interfaces/int_issquare.h | 25 ++++++++++++++++++++++ src/c/elementaryFunctions/interfaces/int_nthroot.h | 23 ++++++++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 src/c/elementaryFunctions/interfaces/int_issquare.h create mode 100644 src/c/elementaryFunctions/interfaces/int_nthroot.h (limited to 'src/c/elementaryFunctions/interfaces') diff --git a/src/c/elementaryFunctions/interfaces/int_iscolumn.h b/src/c/elementaryFunctions/interfaces/int_iscolumn.h index f5e8a7de..e1011d72 100644 --- a/src/c/elementaryFunctions/interfaces/int_iscolumn.h +++ b/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/src/c/elementaryFunctions/interfaces/int_isrow.h b/src/c/elementaryFunctions/interfaces/int_isrow.h index cc6be37c..9298de9d 100644 --- a/src/c/elementaryFunctions/interfaces/int_isrow.h +++ b/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/src/c/elementaryFunctions/interfaces/int_issquare.h b/src/c/elementaryFunctions/interfaces/int_issquare.h new file mode 100644 index 00000000..05357881 --- /dev/null +++ b/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/src/c/elementaryFunctions/interfaces/int_nthroot.h b/src/c/elementaryFunctions/interfaces/int_nthroot.h new file mode 100644 index 00000000..aa48fcc9 --- /dev/null +++ b/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 -- cgit