summaryrefslogtreecommitdiff
path: root/src/matrixOperations/powm/dpowma.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/matrixOperations/powm/dpowma.c')
-rw-r--r--src/matrixOperations/powm/dpowma.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/matrixOperations/powm/dpowma.c b/src/matrixOperations/powm/dpowma.c
index aecf3aac..6b12a8f3 100644
--- a/src/matrixOperations/powm/dpowma.c
+++ b/src/matrixOperations/powm/dpowma.c
@@ -9,7 +9,7 @@
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
*
*/
-
+#include <malloc.h>
#include "matrixPow.h"
#include "spec.h"
#include "pow.h"
@@ -27,10 +27,10 @@ void dpowma(double* in, int rows, double power, double* out){
double* ZEROS;
/* Data initialization */
- eigenvalues = malloc((uint)(rows*rows)*sizeof(doubleComplex));
- eigenvectors = malloc((uint)(rows*rows)*sizeof(doubleComplex));
- tmp = malloc((uint)(rows*rows)*sizeof(doubleComplex));
- ZEROS=malloc((uint)(rows*rows)*sizeof(double));
+ eigenvalues = (doubleComplex*)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex));
+ eigenvectors = (doubleComplex*)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex));
+ tmp = (doubleComplex*)malloc((unsigned int)(rows*rows)*sizeof(doubleComplex));
+ ZEROS=(double*)malloc((unsigned int)(rows*rows)*sizeof(double));
/* symmetric test*/
for(i=0;i<rows;i++) {