#include #include "toeplitz.h" #include "doubleComplex.h" #include "stdlib.h" #include "string.h" #include "cat.h" /*Function to build a Toeplitz Matrix for inputs of DoubleComplex datatype*/ void ztoeplitza(doubleComplex* inp1,int size1,doubleComplex* inp2,int size2,doubleComplex* oup) { if ((zreals(inp1[0])!=zreals(inp2[0]))&&(zimags(inp1[0])!=zimags(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