diff options
Diffstat (limited to '2.3-1/src/c/elementaryFunctions')
58 files changed, 1 insertions, 1444 deletions
diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/dsinca.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/dsinca.c deleted file mode 100644 index 0cd24e96..00000000 --- a/2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/dsinca.c +++ /dev/null @@ -1,46 +0,0 @@ -/* 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: Ankit Raj - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ -#include<stdio.h> -#include<math.h> -#include "sinc.h" -#define PI 3.14159265358979 -void dsinca(double* sample,int size,double* oup) -{ - int j; - for(j=0;j<size;j++) - { - if(sample[j]==0) - { - oup[j]=1; - } - else - { - oup[j]=(sin(sample[j]))/(sample[j]); - } - } -} -/* -int main() -{ - int n; - printf("Enter the length of the array"); - scanf("%d",&n); - double arr[100000]; - int i; - printf("Now enter the element of the array"); - for(i=0;i<n;i++) - { - scanf("%ld",&arr[i]); - } - sinc(arr[],n); -} -*/ diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/int_sinc.h b/2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/int_sinc.h deleted file mode 100644 index 0dc969de..00000000 --- a/2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/int_sinc.h +++ /dev/null @@ -1,18 +0,0 @@ -/* 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: Ankit Raj - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ - -#ifndef __INT_SINC_H__ -#define __INT_SINC_H__ - -#define d2sincd2(sample,size,oup) dsinca(sample,size,oup) - -#endif /* !__INT_SINC_H__! */ diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/sinc.h b/2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/sinc.h deleted file mode 100644 index 6a5c315b..00000000 --- a/2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/sinc.h +++ /dev/null @@ -1,27 +0,0 @@ -/* 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: Ankit Raj - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ - -#ifndef __SINC_H__ -#define __SINC_H__ -#include "types.h" - -#ifdef __cplusplus -extern "C" { -#endif - -void dsinca(double* sample,int size,double* oup); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /* __SINC_H__ */ diff --git a/2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/zsinca.c b/2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/zsinca.c deleted file mode 100644 index 1f6cf9ba..00000000 --- a/2.3-1/src/c/elementaryFunctions/Trigonometry/sinc/zsinca.c +++ /dev/null @@ -1,35 +0,0 @@ -/* 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: Ankit Raj - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ -#include<stdio.h> -#include<math.h> -#include "sinc.h" -#include "sin.h" -#include "doubleComplex.h" -#include "division.h" -void zsinca(doubleComplex* sample,int size,doubleComplex* oup) -{ - int j; - double r,i; - for(j=0;j<size;j++) - { - r=zreals(sample[j]); - i=zimags(sample[j]); - if(r==0 && i==0) - { - oup[j]=DoubleComplex(1,0); - } - else - { - oup[j]=zrdivs(zsins(sample[j]),sample[j]); - } - } -} diff --git a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/gcd/dgcda.c b/2.3-1/src/c/elementaryFunctions/discrete_mathematics/gcd/dgcda.c deleted file mode 100644 index a32ed773..00000000 --- a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/gcd/dgcda.c +++ /dev/null @@ -1,32 +0,0 @@ -/* 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: Ukasha Noor - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "gcd.h" -#include "types.h" - -void dgcda(double *in,int size,double *out) -{ - double a=in[0]; - double b=in[1]; - while(a!=b && a!=0 && b!=0) - { - if(a>b) - { - a=a-b; - } - else - { - b=b-a; - } - } - out[0]=b; -} diff --git a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/gcd/u8gcda.c b/2.3-1/src/c/elementaryFunctions/discrete_mathematics/gcd/u8gcda.c deleted file mode 100644 index 121d26ae..00000000 --- a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/gcd/u8gcda.c +++ /dev/null @@ -1,62 +0,0 @@ -/* Copyright (C) 2017 - 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: Ankit Raj - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ -#include<stdio.h> -/* This is the "gcd" function , which takes two input. first - one is the array and the second one is the length of the array. - Now to calculate the gcd of two elements we fin the maximum of - the two elements, and then iterate from maximum value down to 1, - and check whether the particular value divides the two elements. - And in this way we can calculate the gcd of the whole array. -*/ -#include "gcd.h" -uint8 u8gcdua(uint8* in,int size) -{ - - int temp; - if(size==1) - { - temp=*in; - } - else - { - int x=*in; - int y=*(in+1); - int max=(x>y)?x:y; - int i; - for(i=max;i>=1;i--) - { - if(x%i==0 && y%i==0) - { - temp=i; - break; - } - } - int j; - for(j=2;j<size;j++) - { - x=temp; - y=*(in+j); - max=(x>y)?x:y; - for(i=max;i>=1;i--) - { - if(x%i==0 && y%i==0) - { - temp=i; - break; - } - } - } -} - - return temp; -} - diff --git a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/gcd/u8gcds.c b/2.3-1/src/c/elementaryFunctions/discrete_mathematics/gcd/u8gcds.c deleted file mode 100644 index 75f831fc..00000000 --- a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/gcd/u8gcds.c +++ /dev/null @@ -1,32 +0,0 @@ -/* 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: Ukasha Noor - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "gcd.h" -#include "types.h" - -int8 u8gcds(int8 *in,int size) -{ - int a=in[0]; - int b=in[1]; - while(a!=b && a!=0 && b!=0) - { - if(a>b) - { - a=a-b; - } - else - { - b=b-a; - } - } - return b; -} diff --git a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/lcm/u8lcma.c b/2.3-1/src/c/elementaryFunctions/discrete_mathematics/lcm/u8lcma.c deleted file mode 100644 index b01c8047..00000000 --- a/2.3-1/src/c/elementaryFunctions/discrete_mathematics/lcm/u8lcma.c +++ /dev/null @@ -1,69 +0,0 @@ -/* Copyright (C) 2017 - 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: Ankit Raj - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ -#include<stdio.h> -/* This is the "lcm" function, accepting two inputs which are the array of integers - and second the size of the array. The algorithm works like this: - We take a temproary variable and store the lcm of the first two elements of the - array in it. Now using this temproary variable we recursively fin the lcm of - the whole array. - Now to fin the lcm of two elements we fin the maximum of the two elements and - check whether it is divisible by both the elements, if the condition is true we - get the lcm, else increase the maximum value by itself unless we get the lcm. -*/ -#include "lcm.h" -uint8 u8lcma(uint8* in,int size) -{ - long long int lcm_temp; - if(size==1) - { - lcm_temp=*in; - } - else - { - - int x1=*in; - int x2=*(in+1); - long long int max=(x1>x2)?x1:x2; - long long int i=max; - while(1) - { - if(i%x1==0 && i%x2==0) - { - lcm_temp=i; - break; - } - else - i+=max; - } - int j; - for(j=2;j<size;j++) - { - x1=lcm_temp; - x2=*(in+j); - max=(x1>x2)?x1:x2; - i=max; - while(1) - { - if(i%x1==0 && i%x2==0) - { - lcm_temp=i; - break; - } - else - i+=max; - } - } - - } - return lcm_temp; -} - diff --git a/2.3-1/src/c/elementaryFunctions/includes/gcd.h b/2.3-1/src/c/elementaryFunctions/includes/gcd.h deleted file mode 100644 index 179eea0e..00000000 --- a/2.3-1/src/c/elementaryFunctions/includes/gcd.h +++ /dev/null @@ -1,26 +0,0 @@ -/* 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: Ankit Raj - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ -#ifndef __GCD_H__ -#define __GCD_H__ -#include "types.h" - - #ifdef __cplusplus - extern "C"{ - #endif - -uint8 u8gcda(uint8* in,int size); - - #ifdef __cplusplus - } /* extern "C" */ - #endif - -#endif /*__GCD_H__*/ diff --git a/2.3-1/src/c/elementaryFunctions/includes/int32.h b/2.3-1/src/c/elementaryFunctions/includes/int32.h deleted file mode 100644 index 26b7bcbf..00000000 --- a/2.3-1/src/c/elementaryFunctions/includes/int32.h +++ /dev/null @@ -1,62 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#ifndef __INT32_H__ -#define __INT32_H__ - -#include "dynlib_elementaryfunctions.h" -#include "floatComplex.h" -#include "doubleComplex.h" -#include "types.h" - -#ifdef __cplusplus -extern "C" { -#endif -/* - int32(X) returns the signed int part of the double value -*/ - -EXTERN_ELEMFUNCT int32 sint32s(float in); - -EXTERN_ELEMFUNCT int32 dint32s(double in); - -EXTERN_ELEMFUNCT int32 u8int32s(uint8 in); - -EXTERN_ELEMFUNCT int32 i8int32s(int8 in); - -EXTERN_ELEMFUNCT int32 u16int32s(uint16 in); - -EXTERN_ELEMFUNCT int32 i16int32s(int16 in); - -EXTERN_ELEMFUNCT int32 u32int32s(uint32 in); - -EXTERN_ELEMFUNCT void sint32a(float* in, int size, int32* out); - -EXTERN_ELEMFUNCT void dint32a(double* in, int size, int32* out); - -EXTERN_ELEMFUNCT void u8int32a(uint8* in, int size, int32* out); - -EXTERN_ELEMFUNCT void i8int32a(int8* in, int size, int32* out); - -EXTERN_ELEMFUNCT void u16int32a(uint16* in, int size, int32* out); - -EXTERN_ELEMFUNCT void i16int32a(int16* in, int size, int32* out); - -EXTERN_ELEMFUNCT void u32int32a(uint32* in, int size, int32* out); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - - -#endif /* !__INT32_H__ */ - diff --git a/2.3-1/src/c/elementaryFunctions/includes/isreal.h b/2.3-1/src/c/elementaryFunctions/includes/isreal.h deleted file mode 100644 index 0183ebce..00000000 --- a/2.3-1/src/c/elementaryFunctions/includes/isreal.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab - * Copyright (C) 2007-2008 - INRIA - Bruno JOFRET - * - * 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 - * - */ - -#ifndef __ISREAL_H__ -#define __ISREAL_H__ - -#include "types.h" - -#ifdef __cplusplus -extern "C" { -#endif - -float sisreals(float a); - -double disreals(double a); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif diff --git a/2.3-1/src/c/elementaryFunctions/includes/lcm.h b/2.3-1/src/c/elementaryFunctions/includes/lcm.h deleted file mode 100644 index 3a3e66fb..00000000 --- a/2.3-1/src/c/elementaryFunctions/includes/lcm.h +++ /dev/null @@ -1,27 +0,0 @@ -/* 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: Ankit Raj - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ -#ifndef __LCM_H__ -#define __LCM_H__ -#include "types.h" - -#ifdef __cplusplus -extern "C" { -#endif - -uint8 u8lcma(uint8* in,int size); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /*__LCM_H__*/ - diff --git a/2.3-1/src/c/elementaryFunctions/includes/linspace.h b/2.3-1/src/c/elementaryFunctions/includes/linspace.h index 62d45015..92fe10e5 100644 --- a/2.3-1/src/c/elementaryFunctions/includes/linspace.h +++ b/2.3-1/src/c/elementaryFunctions/includes/linspace.h @@ -21,11 +21,8 @@ extern "C" { EXTERN_ELEMFUNCT void dlinspaces(double low_limit,double up_limit,double range_num, double* out); -EXTERN_ELEMFUNCT void slinspaces(float low_limit,float up_limit,float range_num, float* out); - EXTERN_ELEMFUNCT void dlinspacea(double *low_limit,int row,double *up_limit,double range_num, double* out); -EXTERN_ELEMFUNCT void slinspacea(float *low_limit,int row,float *up_limit,float range_num, float* out); diff --git a/2.3-1/src/c/elementaryFunctions/includes/nextpow2.h b/2.3-1/src/c/elementaryFunctions/includes/nextpow2.h deleted file mode 100644 index c86bea01..00000000 --- a/2.3-1/src/c/elementaryFunctions/includes/nextpow2.h +++ /dev/null @@ -1,28 +0,0 @@ -/* 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: Ukasha Noor - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - - -#ifndef __NEXTPOW2_H__ -#define __NEXTPOW2_H__ - -#ifdef __cplusplus -extern "C" { -#endif - -void dnextpow2a(double *in,int size,double *out); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif - diff --git a/2.3-1/src/c/elementaryFunctions/includes/sec.h b/2.3-1/src/c/elementaryFunctions/includes/sec.h index a04c5f73..96061583 100644 --- a/2.3-1/src/c/elementaryFunctions/includes/sec.h +++ b/2.3-1/src/c/elementaryFunctions/includes/sec.h @@ -14,7 +14,7 @@ #include "dynlib_elementaryfunctions.h" #include "floatComplex.h" #include "doubleComplex.h" -//#include <complex.h> +#include <complex.h> #include "types.h" #ifdef __cplusplus diff --git a/2.3-1/src/c/elementaryFunctions/includes/sinc.h b/2.3-1/src/c/elementaryFunctions/includes/sinc.h deleted file mode 100644 index 8bc98d28..00000000 --- a/2.3-1/src/c/elementaryFunctions/includes/sinc.h +++ /dev/null @@ -1,29 +0,0 @@ -/* 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: Ankit Raj - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ - -#ifndef __SINC_H__ -#define __SINC_H__ -#include "types.h" -#include "doubleComplex.h" - -#ifdef __cplusplus -extern "C" { -#endif - -void dsinca(double* sample,int size,double* oup); -void zsinca(doubleComplex* sample,int size,doubleComplex* oup); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - -#endif /* __SINC_H__ */ diff --git a/2.3-1/src/c/elementaryFunctions/includes/uint32.h b/2.3-1/src/c/elementaryFunctions/includes/uint32.h deleted file mode 100644 index b90247bc..00000000 --- a/2.3-1/src/c/elementaryFunctions/includes/uint32.h +++ /dev/null @@ -1,62 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#ifndef __UINT32_H__ -#define __UINT32_H__ - -#include "dynlib_elementaryfunctions.h" -#include "floatComplex.h" -#include "doubleComplex.h" -#include "types.h" - -#ifdef __cplusplus -extern "C" { -#endif -/* - uint32(X) returns the unsigned int part of the double value -*/ - -EXTERN_ELEMFUNCT uint32 suint32s(float in); - -EXTERN_ELEMFUNCT uint32 duint32s(double in); - -EXTERN_ELEMFUNCT uint32 u8uint32s(uint8 in); - -EXTERN_ELEMFUNCT uint32 i8uint32s(int8 in); - -EXTERN_ELEMFUNCT uint32 u16uint32s(uint16 in); - -EXTERN_ELEMFUNCT uint32 i16uint32s(int16 in); - -EXTERN_ELEMFUNCT uint32 i32uint32s(int32 in); - -EXTERN_ELEMFUNCT void suint32a(float* in, int size, uint32* out); - -EXTERN_ELEMFUNCT void duint32a(double* in, int size, uint32* out); - -EXTERN_ELEMFUNCT void u8uint32a(uint8* in, int size, uint32* out); - -EXTERN_ELEMFUNCT void i8uint32a(int8* in, int size, uint32* out); - -EXTERN_ELEMFUNCT void u16uint32a(uint16* in, int size, uint32* out); - -EXTERN_ELEMFUNCT void i16uint32a(int16* in, int size, uint32* out); - -EXTERN_ELEMFUNCT void i32uint32a(int32* in, int size, uint32* out); - -#ifdef __cplusplus -} /* extern "C" */ -#endif - - -#endif /* !__UINT32_H__ */ - diff --git a/2.3-1/src/c/elementaryFunctions/int32/dint32a.c b/2.3-1/src/c/elementaryFunctions/int32/dint32a.c deleted file mode 100644 index f8b4b662..00000000 --- a/2.3-1/src/c/elementaryFunctions/int32/dint32a.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "int32.h" - -void dint32a(double* x, int size, int32* out) { - int i = 0; - for (i=0;i<size;i++) out[i] = dint32s(x[i]); -} diff --git a/2.3-1/src/c/elementaryFunctions/int32/dint32s.c b/2.3-1/src/c/elementaryFunctions/int32/dint32s.c deleted file mode 100644 index 19366ef0..00000000 --- a/2.3-1/src/c/elementaryFunctions/int32/dint32s.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - - -#include "int32.h" - -int32 dint32s(double x) { - return (int32) x; -} diff --git a/2.3-1/src/c/elementaryFunctions/int32/i16int32a.c b/2.3-1/src/c/elementaryFunctions/int32/i16int32a.c deleted file mode 100644 index e970deb2..00000000 --- a/2.3-1/src/c/elementaryFunctions/int32/i16int32a.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ -#include "int32.h" - -void i16int32a(int16* x, int size, int32* out) { - int i = 0; - for (i=0;i<size;i++) out[i] = i16int32s(x[i]); -} diff --git a/2.3-1/src/c/elementaryFunctions/int32/i16int32s.c b/2.3-1/src/c/elementaryFunctions/int32/i16int32s.c deleted file mode 100644 index ad079930..00000000 --- a/2.3-1/src/c/elementaryFunctions/int32/i16int32s.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "int32.h" - -int32 i16int32s(int16 x) { - return (int32) x; -} diff --git a/2.3-1/src/c/elementaryFunctions/int32/i8int32a.c b/2.3-1/src/c/elementaryFunctions/int32/i8int32a.c deleted file mode 100644 index d046ba19..00000000 --- a/2.3-1/src/c/elementaryFunctions/int32/i8int32a.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ -#include "int32.h" - -void i8int32a(int8* x, int size, int32* out) { - int i = 0; - for (i=0;i<size;i++) out[i] = i8int32s(x[i]); -} diff --git a/2.3-1/src/c/elementaryFunctions/int32/i8int32s.c b/2.3-1/src/c/elementaryFunctions/int32/i8int32s.c deleted file mode 100644 index c126662c..00000000 --- a/2.3-1/src/c/elementaryFunctions/int32/i8int32s.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "int32.h" - -int32 i8int32s(int8 x) { - return (int32) x; -} diff --git a/2.3-1/src/c/elementaryFunctions/int32/sint32a.c b/2.3-1/src/c/elementaryFunctions/int32/sint32a.c deleted file mode 100644 index 14dbefec..00000000 --- a/2.3-1/src/c/elementaryFunctions/int32/sint32a.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "int32.h" - -void sint32a(float* x, int size, int32* out) { - int i = 0; - for (i=0;i<size;i++) out[i] = sint32s(x[i]); -} diff --git a/2.3-1/src/c/elementaryFunctions/int32/sint32s.c b/2.3-1/src/c/elementaryFunctions/int32/sint32s.c deleted file mode 100644 index 8a4f8e7e..00000000 --- a/2.3-1/src/c/elementaryFunctions/int32/sint32s.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "int32.h" - -int32 sint32s(float x) { - return (int32) x; -} diff --git a/2.3-1/src/c/elementaryFunctions/int32/u16int32a.c b/2.3-1/src/c/elementaryFunctions/int32/u16int32a.c deleted file mode 100644 index eaf90fda..00000000 --- a/2.3-1/src/c/elementaryFunctions/int32/u16int32a.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "int32.h" - -void u16int32a(uint16* x, int size, int32* out) { - int i = 0; - for (i=0;i<size;i++) out[i] = u16int32s(x[i]); -} diff --git a/2.3-1/src/c/elementaryFunctions/int32/u16int32s.c b/2.3-1/src/c/elementaryFunctions/int32/u16int32s.c deleted file mode 100644 index be3909a2..00000000 --- a/2.3-1/src/c/elementaryFunctions/int32/u16int32s.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "int32.h" - -int32 u16int32s(uint16 x) { - return (int32) x; -} diff --git a/2.3-1/src/c/elementaryFunctions/int32/u32int32a.c b/2.3-1/src/c/elementaryFunctions/int32/u32int32a.c deleted file mode 100644 index a135d12a..00000000 --- a/2.3-1/src/c/elementaryFunctions/int32/u32int32a.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "int32.h" - -void u32int32a(uint32* x, int size, int32* out) { - int i = 0; - for (i=0;i<size;i++) out[i] = u32int32s(x[i]); -} diff --git a/2.3-1/src/c/elementaryFunctions/int32/u32int32s.c b/2.3-1/src/c/elementaryFunctions/int32/u32int32s.c deleted file mode 100644 index ee5a16aa..00000000 --- a/2.3-1/src/c/elementaryFunctions/int32/u32int32s.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "int32.h" - -int32 u32int32s(uint32 x) { - return (int32) x; -} diff --git a/2.3-1/src/c/elementaryFunctions/int32/u8int32a.c b/2.3-1/src/c/elementaryFunctions/int32/u8int32a.c deleted file mode 100644 index 1361feab..00000000 --- a/2.3-1/src/c/elementaryFunctions/int32/u8int32a.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "int32.h" - -void u8int32a(uint8* x, int size, int32* out) { - int i = 0; - for (i=0;i<size;i++) out[i] = u8int32s(x[i]); -} diff --git a/2.3-1/src/c/elementaryFunctions/int32/u8int32s.c b/2.3-1/src/c/elementaryFunctions/int32/u8int32s.c deleted file mode 100644 index c3b06903..00000000 --- a/2.3-1/src/c/elementaryFunctions/int32/u8int32s.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "int32.h" - -int32 u8int32s(uint8 x) { - return (int32) x; -} diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_gcd.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_gcd.h deleted file mode 100644 index f3e117c5..00000000 --- a/2.3-1/src/c/elementaryFunctions/interfaces/int_gcd.h +++ /dev/null @@ -1,25 +0,0 @@ - /* 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: Ankit Raj - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ -#ifndef __INT_GCD_H__ -#define __INT_GCD_H__ - - #ifdef __cplusplus - extern "C" { - #endif - -#define u82gcdu80(in,size) u8gcda(in,size[1]) - - #ifdef __cplusplus - } /* extern "C" */ - #endif - -#endif /*__INT_GCD_H__*/ diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_int32.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_int32.h deleted file mode 100644 index 5da9bd25..00000000 --- a/2.3-1/src/c/elementaryFunctions/interfaces/int_int32.h +++ /dev/null @@ -1,46 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* THIS IS AN AUTOMATICALLY GENERATED FILE : DO NOT EDIT BY HAND. */ - -#ifndef __INT_INT32_H__ -#define __INT_INT32_H__ - -#define s0int32i320(in) sint32s(in) - -#define d0int32i320(in) dint32s(in) - -#define u80int32i320(in) u8int32s(in) - -#define i80int32i320(in) i8int32s(in) - -#define u160int32i320(in) u16int32s(in) - -#define i160int32i320(in) i16int32s(in) - -#define u320int32i320(in) u32int32s(in) - -#define s2int32i322(in,size,out) sint32a(in, size[0]*size[1], out) - -#define d2int32i322(in,size,out) dint32a(in, size[0]*size[1], out) - -#define u82int32i322(in,size,out) u8int32a(in, size[0]*size[1], out) - -#define i82int32i322(in,size,out) i8int32a(in, size[0]*size[1], out) - -#define u162int32i322(in,size,out) u16int32a(in, size[0]*size[1], out) - -#define i162int32i322(in,size,out) i16int32a(in, size[0]*size[1], out) - -#define u322int32i322(in,size,out) u32int32a(in, size[0]*size[1], out) - -#endif /* !__INT_INT32_H__ */ diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_isreal.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_isreal.h deleted file mode 100644 index cebbf6db..00000000 --- a/2.3-1/src/c/elementaryFunctions/interfaces/int_isreal.h +++ /dev/null @@ -1,22 +0,0 @@ -/* 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: Ukasha Noor - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - - - -#ifndef __INT_ISREAL_H__ -#define __INT_ISREAL_H__ - -#define s0isreals0(in) sisreals(in) - -#define d0isreald0(in) disreals(in) - -#endif diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_lcm.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_lcm.h deleted file mode 100644 index 2ef1a081..00000000 --- a/2.3-1/src/c/elementaryFunctions/interfaces/int_lcm.h +++ /dev/null @@ -1,27 +0,0 @@ -/* 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: Ankit Raj - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ - - - -#ifndef __INT_LCM_H__ -#define __INT_LCM_H__ - #ifdef __cplusplus - extern "C" { - #endif - -#define u82lcmu80(in,size) u8lcma(in,size[1]) - - #ifdef __cplusplus - } /* extern "C" */ - #endif - -#endif /* !__INT_LCM_H__ */ diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_linspace.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_linspace.h index 15ea2696..f8af947a 100644 --- a/2.3-1/src/c/elementaryFunctions/interfaces/int_linspace.h +++ b/2.3-1/src/c/elementaryFunctions/interfaces/int_linspace.h @@ -15,10 +15,6 @@ #define d0d0d0linspaced2(in1,in2,in3,out) dlinspaces(in1,in2,in3,out) -#define s0s0s0linspaces2(in1,in2,in3,out) slinspaces(in1,in2,in3,out) - #define d2d2d0linspaced2(in1,size1,in2,size2,in3,out) dlinspacea(in1,size1[0],in2,in3,out) -#define s2s2s0linspaces2(in1,size1,in2,size2,in3,out) slinspacea(in1,size1[0],in2,in3,out) - #endif diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_nextpow2.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_nextpow2.h deleted file mode 100644 index 6ae4747b..00000000 --- a/2.3-1/src/c/elementaryFunctions/interfaces/int_nextpow2.h +++ /dev/null @@ -1,26 +0,0 @@ -/* 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: Ukasha Noor - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -/* THIS IS AN AUTOMATICALLY GENERATED FILE : DO NOT EDIT BY HAND. */ - - -#ifndef __INT_NEXTPOW2_H__ -#define __INT_NEXTPOW2_H__ - - -#include "nextpow2.h" - -#define d0nextpow2d0(in,size,out) dnextpow2a(in,size[0]*size[1],out) - -#define d2nextpow2d2(in,size,out) dnextpow2a(in,size[0]*size[1],out) - -#endif diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_sinc.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_sinc.h deleted file mode 100644 index 35a519db..00000000 --- a/2.3-1/src/c/elementaryFunctions/interfaces/int_sinc.h +++ /dev/null @@ -1,19 +0,0 @@ -/* 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: Ankit Raj - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in - */ - -#ifndef __INT_SINC_H__ -#define __INT_SINC_H__ - -#define d2sincd2(sample,size,oup) dsinca(sample,size[1],oup) -#define z2sincz2(sample,size,oup) zsinca(sample,size[1],oup) - -#endif /* !__INT_SINC_H__! */ diff --git a/2.3-1/src/c/elementaryFunctions/interfaces/int_uint32.h b/2.3-1/src/c/elementaryFunctions/interfaces/int_uint32.h deleted file mode 100644 index 7c9353b3..00000000 --- a/2.3-1/src/c/elementaryFunctions/interfaces/int_uint32.h +++ /dev/null @@ -1,44 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#ifndef __INT_UINT32_H__ -#define __INT_UINT32_H__ - -#define s0uint32u320(in) suint32s(in) - -#define d0uint32u320(in) duint32s(in) - -#define u80uint32u320(in) u8uint32s(in) - -#define i80uint32u320(in) i8uint32s(in) - -#define u160uint32u320(in) u16uint32s(in) - -#define i160uint32u320(in) i16uint32s(in) - -#define i320uint32u320(in) i32uint32s(in) - -#define s2uint32u322(in,size,out) suint32a(in, size[0]*size[1], out) - -#define d2uint32u322(in,size,out) duint32a(in, size[0]*size[1], out) - -#define u82uint32u322(in,size,out) u8uint32a(in, size[0]*size[1], out) - -#define i82uint32u322(in,size,out) i8int32a(in, size[0]*size[1], out) - -#define u162uint32u322(in,size,out) u16uint32a(in, size[0]*size[1], out) - -#define i162uint32u322(in,size,out) i16uint32a(in, size[0]*size[1], out) - -#define i322uint32u322(in,size,out) i32uint32a(in, size[0]*size[1], out) - -#endif /* !__INT_UINT32_H__ */ diff --git a/2.3-1/src/c/elementaryFunctions/isreal/disreals.c b/2.3-1/src/c/elementaryFunctions/isreal/disreals.c deleted file mode 100644 index 8c7c8201..00000000 --- a/2.3-1/src/c/elementaryFunctions/isreal/disreals.c +++ /dev/null @@ -1,17 +0,0 @@ -/* 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: Ukasha Noor - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "isreal.h" - -double disreals(double a){ - return 1; -} diff --git a/2.3-1/src/c/elementaryFunctions/isreal/sisreals.c b/2.3-1/src/c/elementaryFunctions/isreal/sisreals.c deleted file mode 100644 index 4b93c02c..00000000 --- a/2.3-1/src/c/elementaryFunctions/isreal/sisreals.c +++ /dev/null @@ -1,17 +0,0 @@ -/* 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: Ukasha Noor - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "isreal.h" - -float sisreals(float a){ - return 1; -} diff --git a/2.3-1/src/c/elementaryFunctions/linspace/slinspacea.c b/2.3-1/src/c/elementaryFunctions/linspace/slinspacea.c deleted file mode 100644 index 38af3942..00000000 --- a/2.3-1/src/c/elementaryFunctions/linspace/slinspacea.c +++ /dev/null @@ -1,49 +0,0 @@ -/* 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: Ukasha Noor - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ -#include <stdlib.h> -#include "linspace.h" - -void slinspacea(float *low_limit,int _row,float *up_limit,float range_num,float *out) -{ - int i,j,k; - float temp; - float *step_iterate; /* for each row the spacing between two values is different.*/ - step_iterate = (float*) malloc((float)_row*sizeof(float)); - for(i=0;i<_row;i++) - { - - step_iterate[i] = (up_limit[i]-low_limit[i])/(range_num-1); - - } - for(j=0;j < _row;j++) - { - out[j] = low_limit[j]; /* For every row first element is the first value of low_limit array*/ - temp = low_limit[j]; - for(k=1;k < (float)range_num;k++ ) - { - out[(_row*k)+j] = temp + step_iterate[j]; /* Output matrix positions for 3 X 5 matrix are [0 3 6 9 12;1 4 7 10 13;2 5 8 11 14] so (_row*k)+j) used*/ - temp = out[(_row*k)+j]; - if(k == (float)range_num-1 ) - { - out[(_row*k)+j] = (float)up_limit[j]; /* Last value of output is equal to first value of up_limit array*/ - } - - } - - - } - - - - -} - diff --git a/2.3-1/src/c/elementaryFunctions/linspace/slinspaces.c b/2.3-1/src/c/elementaryFunctions/linspace/slinspaces.c deleted file mode 100644 index 2404f4de..00000000 --- a/2.3-1/src/c/elementaryFunctions/linspace/slinspaces.c +++ /dev/null @@ -1,33 +0,0 @@ -/* 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: Ukasha Noor - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "linspace.h" -void slinspaces(float low_limit,float up_limit,float range_num,float *out) -{ - int j; - float temp = low_limit; - float step_iterate = (up_limit-low_limit)/(range_num-1); - out[0] = low_limit; /*First value of output is equal to low_limit value*/ - for(j=1; j<(float)range_num; j++) - { - out[j] = temp + step_iterate; - temp = out[j]; - if(j == (float)range_num-1 ) - { - out[j] = (float)up_limit; /* Last value of output is equal to up_limit value*/ - } - } - - - -} - diff --git a/2.3-1/src/c/elementaryFunctions/nextpow2/dnextpow2a.c b/2.3-1/src/c/elementaryFunctions/nextpow2/dnextpow2a.c deleted file mode 100644 index 46f7eb80..00000000 --- a/2.3-1/src/c/elementaryFunctions/nextpow2/dnextpow2a.c +++ /dev/null @@ -1,30 +0,0 @@ -/* Copyright (C) 2017 - 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 - Organization: FOSSEE, IIT Bombay - Author: Ukasha Noor - Email: toolbox@scilab.in -*/ - -#include "nextpow2.h" -#include <math.h> - -void dnextpow2a(double *in,int size,double *out) -{ - int i,j,s; - double k; - i=2; - for(s=0;s<size;s++) - { - j=-1; - do{ - j++; - k=pow(i,j); - }while(in[s]>k); - out[s]=j; - } -} diff --git a/2.3-1/src/c/elementaryFunctions/uint32/duint32a.c b/2.3-1/src/c/elementaryFunctions/uint32/duint32a.c deleted file mode 100644 index 7cd0ea3e..00000000 --- a/2.3-1/src/c/elementaryFunctions/uint32/duint32a.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "uint32.h" - -void duint32a(double* x, int size, uint32* out) { - int i = 0; - for (i=0;i<size;i++) out[i] = duint32s(x[i]); -} diff --git a/2.3-1/src/c/elementaryFunctions/uint32/duint32s.c b/2.3-1/src/c/elementaryFunctions/uint32/duint32s.c deleted file mode 100644 index f507305a..00000000 --- a/2.3-1/src/c/elementaryFunctions/uint32/duint32s.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - - -#include "uint32.h" - -uint32 duint32s(double x) { - return (uint32) x; -} diff --git a/2.3-1/src/c/elementaryFunctions/uint32/i16uint32a.c b/2.3-1/src/c/elementaryFunctions/uint32/i16uint32a.c deleted file mode 100644 index 84d0fa02..00000000 --- a/2.3-1/src/c/elementaryFunctions/uint32/i16uint32a.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "uint32.h" - -void i16uint32a(int16* x, int size, uint32* out) { - int i = 0; - for (i=0;i<size;i++) out[i] = i16uint32s(x[i]); -} diff --git a/2.3-1/src/c/elementaryFunctions/uint32/i16uint32s.c b/2.3-1/src/c/elementaryFunctions/uint32/i16uint32s.c deleted file mode 100644 index 7d9ccef7..00000000 --- a/2.3-1/src/c/elementaryFunctions/uint32/i16uint32s.c +++ /dev/null @@ -1,18 +0,0 @@ -/* 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 -*/ - - -#include "uint32.h" - -uint32 i16uint32s(int16 x) { - return (uint32) x; -} diff --git a/2.3-1/src/c/elementaryFunctions/uint32/i32uint32a.c b/2.3-1/src/c/elementaryFunctions/uint32/i32uint32a.c deleted file mode 100644 index 415711ed..00000000 --- a/2.3-1/src/c/elementaryFunctions/uint32/i32uint32a.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "uint32.h" - -void i32uint32a(int32* x, int size, uint32* out) { - int i = 0; - for (i=0;i<size;i++) out[i] = i32uint32s(x[i]); -} diff --git a/2.3-1/src/c/elementaryFunctions/uint32/i32uint32s.c b/2.3-1/src/c/elementaryFunctions/uint32/i32uint32s.c deleted file mode 100644 index 63442f24..00000000 --- a/2.3-1/src/c/elementaryFunctions/uint32/i32uint32s.c +++ /dev/null @@ -1,18 +0,0 @@ -/* 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 -*/ - - -#include "uint32.h" - -uint32 i32uint32s(int32 x) { - return (uint32) x; -} diff --git a/2.3-1/src/c/elementaryFunctions/uint32/i8uint32a.c b/2.3-1/src/c/elementaryFunctions/uint32/i8uint32a.c deleted file mode 100644 index 0dca1b5b..00000000 --- a/2.3-1/src/c/elementaryFunctions/uint32/i8uint32a.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "uint32.h" - -void i8uint32a(int8* x, int size, uint32* out) { - int i = 0; - for (i=0;i<size;i++) out[i] = i8uint32s(x[i]); -} diff --git a/2.3-1/src/c/elementaryFunctions/uint32/i8uint32s.c b/2.3-1/src/c/elementaryFunctions/uint32/i8uint32s.c deleted file mode 100644 index 46c0ecb5..00000000 --- a/2.3-1/src/c/elementaryFunctions/uint32/i8uint32s.c +++ /dev/null @@ -1,17 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "uint32.h" - -uint32 i8uint32s(int8 x) { - return (uint32) x; -} diff --git a/2.3-1/src/c/elementaryFunctions/uint32/suint32a.c b/2.3-1/src/c/elementaryFunctions/uint32/suint32a.c deleted file mode 100644 index 2478c021..00000000 --- a/2.3-1/src/c/elementaryFunctions/uint32/suint32a.c +++ /dev/null @@ -1,19 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - - -#include "uint32.h" - -void suint32a(float* x, int size, uint32* out) { - int i = 0; - for (i=0;i<size;i++) out[i] = suint32s(x[i]); -} diff --git a/2.3-1/src/c/elementaryFunctions/uint32/suint32s.c b/2.3-1/src/c/elementaryFunctions/uint32/suint32s.c deleted file mode 100644 index 3578b428..00000000 --- a/2.3-1/src/c/elementaryFunctions/uint32/suint32s.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - - -#include "uint32.h" - -uint32 suint32s(float x) { - return (uint32) x; -} diff --git a/2.3-1/src/c/elementaryFunctions/uint32/u16uint32a.c b/2.3-1/src/c/elementaryFunctions/uint32/u16uint32a.c deleted file mode 100644 index 177bae24..00000000 --- a/2.3-1/src/c/elementaryFunctions/uint32/u16uint32a.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "uint32.h" - -void u16uint32a(uint16* x, int size, uint32* out) { - int i = 0; - for (i=0;i<size;i++) out[i] = u16uint32s(x[i]); -} diff --git a/2.3-1/src/c/elementaryFunctions/uint32/u16uint32s.c b/2.3-1/src/c/elementaryFunctions/uint32/u16uint32s.c deleted file mode 100644 index df258b26..00000000 --- a/2.3-1/src/c/elementaryFunctions/uint32/u16uint32s.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - - -#include "uint32.h" - -uint32 u16uint32s(uint16 x) { - return (uint32) x; -} diff --git a/2.3-1/src/c/elementaryFunctions/uint32/u8uint32a.c b/2.3-1/src/c/elementaryFunctions/uint32/u8uint32a.c deleted file mode 100644 index a89541b1..00000000 --- a/2.3-1/src/c/elementaryFunctions/uint32/u8uint32a.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - -#include "uint32.h" - -void u8uint32a(uint8* x, int size, uint32* out) { - int i = 0; - for (i=0;i<size;i++) out[i] = u8uint32s(x[i]); -} diff --git a/2.3-1/src/c/elementaryFunctions/uint32/u8uint32s.c b/2.3-1/src/c/elementaryFunctions/uint32/u8uint32s.c deleted file mode 100644 index ac48fe27..00000000 --- a/2.3-1/src/c/elementaryFunctions/uint32/u8uint32s.c +++ /dev/null @@ -1,18 +0,0 @@ -/* Copyright (C) 2017 - 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, Jorawar Singh - Organization: FOSSEE, IIT Bombay - Email: toolbox@scilab.in -*/ - - -#include "uint32.h" - -uint32 u8uint32s(uint8 x) { - return (uint32) x; -} |