From 124ef41ebab756797803b30c4c07ce37213a6477 Mon Sep 17 00:00:00 2001 From: Brijeshcr Date: Fri, 7 Jul 2017 16:43:27 +0530 Subject: Toeplitz Added --- src/c/matrixOperations/toeplitz/ctoeplitza.c | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/c/matrixOperations/toeplitz/ctoeplitza.c (limited to 'src/c/matrixOperations/toeplitz/ctoeplitza.c') diff --git a/src/c/matrixOperations/toeplitz/ctoeplitza.c b/src/c/matrixOperations/toeplitz/ctoeplitza.c new file mode 100644 index 0000000..048a367 --- /dev/null +++ b/src/c/matrixOperations/toeplitz/ctoeplitza.c @@ -0,0 +1,36 @@ +#include +#include "toeplitz.h" +#include "floatComplex.h" +#include "stdlib.h" +#include "string.h" +#include "cat.h" + +/*Function to build a Toeplitz Matrix for inputs of SingleComplex datatype*/ + +void ctoeplitza(floatComplex* inp1,int size1,floatComplex* inp2,int size2,floatComplex* oup) +{ + if (inp1[0]!=inp2[0]) + { + printf("Error!The first elements of the Vectors are not equal."); // First element of both input vectors must be equal for Toeplitz. + return; + } + int i, j; + + for(i=0;i