diff options
Diffstat (limited to 'src/matrixOperations/spec2/cspec2a.c')
-rw-r--r-- | src/matrixOperations/spec2/cspec2a.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/matrixOperations/spec2/cspec2a.c b/src/matrixOperations/spec2/cspec2a.c index 094d99ac..d3a4312f 100644 --- a/src/matrixOperations/spec2/cspec2a.c +++ b/src/matrixOperations/spec2/cspec2a.c @@ -10,7 +10,7 @@ * */ - +#include <stdlib.h> #include "spec.h" @@ -23,9 +23,9 @@ void cspec2a(floatComplex* in, int rows, floatComplex* eigenvalues,floatComplex* doubleComplex* dblin; doubleComplex* dbleigenvalues,*dbleigenvectors; - dblin=malloc((uint)(rows*rows)*sizeof(doubleComplex)); - dbleigenvalues=malloc((uint)(rows*rows)*sizeof(doubleComplex)); - dbleigenvectors=malloc((uint)(rows*rows)*sizeof(doubleComplex)); + dblin=(doubleComplex*)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex)); + dbleigenvalues=(doubleComplex*)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex)); + dbleigenvectors=(doubleComplex*)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex)); for (i=0;i<rows*rows;i++) dblin[i]=DoubleComplex((double)creals(in[i]),(double)cimags(in[i])); |