From ea958d3c401761dcc24865d9639b2fab31038db8 Mon Sep 17 00:00:00 2001 From: Brijeshcr Date: Thu, 6 Jul 2017 15:48:47 +0530 Subject: Revert "LinearAlgebra Function Added" --- src/c/signalProcessing/transforms/idct/cidcta.c | 118 ++++++++++++++++++++++++ src/c/signalProcessing/transforms/idct/didcta.c | 83 +++++++++++++++++ src/c/signalProcessing/transforms/idct/sidcta.c | 83 +++++++++++++++++ src/c/signalProcessing/transforms/idct/zidcta.c | 118 ++++++++++++++++++++++++ 4 files changed, 402 insertions(+) create mode 100644 src/c/signalProcessing/transforms/idct/cidcta.c create mode 100644 src/c/signalProcessing/transforms/idct/didcta.c create mode 100644 src/c/signalProcessing/transforms/idct/sidcta.c create mode 100644 src/c/signalProcessing/transforms/idct/zidcta.c (limited to 'src/c/signalProcessing/transforms/idct') diff --git a/src/c/signalProcessing/transforms/idct/cidcta.c b/src/c/signalProcessing/transforms/idct/cidcta.c new file mode 100644 index 0000000..ae98ba1 --- /dev/null +++ b/src/c/signalProcessing/transforms/idct/cidcta.c @@ -0,0 +1,118 @@ +/* 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 "idct.h" +#include "addition.h" +#include "types.h" +#include "floatComplex.h" +#include "multiplication.h" +/*#include "matrixMultiplication"*/ +/*#include */ +#include + +void cidcta(floatComplex *in,int row,int col,floatComplex *out) +{ + int i,j,k,u,v; + int n=col; + int x,y; + float res,ress,vv,ff; + float re,z,q,m; + floatComplex accu = FloatComplex(0, 0); + floatComplex temp,mm,aa,bb; + if(row==1) + { + res=1./sqrt(n); + ress=sqrt(2./n); + for(u=0;u*/ +#include + +void didcta(double *in,int row,int col,double *out) +{ + int i,j,k,u,v; + int n=col; + int x,y; + double res,ress; + double re,z,q,m; + if(row==1) + { + res=1./sqrt(n); + ress=sqrt(2./n); + for(u=0;u*/ +#include + +void sidcta(float *in,int row,int col,float *out) +{ + int i,j,k,u,v; + int n=col; + int x,y; + float res,ress; + float re,z,q,m; + if(row==1) + { + res=1./sqrt(n); + ress=sqrt(2./n); + for(u=0;u*/ +#include + +void zidcta(doubleComplex *in,int row,int col,doubleComplex *out) +{ + int i,j,k,u,v; + int n=col; + int x,y; + double res,ress,vv,ff; + double re,z,q,m; + doubleComplex accu = DoubleComplex(0, 0); + doubleComplex temp,mm,aa,bb; + if(row==1) + { + res=1./sqrt(n); + ress=sqrt(2./n); + for(u=0;u