From 4ebc92d414c6e87cea84770f4137434b922a76ca Mon Sep 17 00:00:00 2001 From: Brijeshcr Date: Fri, 7 Jul 2017 22:29:47 +0530 Subject: Changes to Toeplitz --- src/c/matrixOperations/toeplitz/ctoeplitza.c | 6 +++--- src/c/matrixOperations/toeplitz/ztoeplitza.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/c/matrixOperations/toeplitz') diff --git a/src/c/matrixOperations/toeplitz/ctoeplitza.c b/src/c/matrixOperations/toeplitz/ctoeplitza.c index 048a367..56c3ef8 100644 --- a/src/c/matrixOperations/toeplitz/ctoeplitza.c +++ b/src/c/matrixOperations/toeplitz/ctoeplitza.c @@ -9,14 +9,14 @@ void ctoeplitza(floatComplex* inp1,int size1,floatComplex* inp2,int size2,floatComplex* oup) { - if (inp1[0]!=inp2[0]) + if ((creals(inp1[0])!=creals(inp2[0]))&&(cimags(inp1[0])!=cimags(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