summaryrefslogtreecommitdiff
path: root/src/matrixOperations/powm/spowma.c
diff options
context:
space:
mode:
authorcornet2009-04-22 05:54:43 +0000
committercornet2009-04-22 05:54:43 +0000
commit879e2ac0a540fa1b199e20d47830aa5eea484a4c (patch)
tree69ef4242aa8ce27332dec2a27f4e7f10a6f9e8fb /src/matrixOperations/powm/spowma.c
parent1811fe5588d0cfbb788ab8f477800af3f45dd710 (diff)
downloadscilab2c-879e2ac0a540fa1b199e20d47830aa5eea484a4c.tar.gz
scilab2c-879e2ac0a540fa1b199e20d47830aa5eea484a4c.tar.bz2
scilab2c-879e2ac0a540fa1b199e20d47830aa5eea484a4c.zip
build with visual studio (dynamic libraries)
Diffstat (limited to 'src/matrixOperations/powm/spowma.c')
-rw-r--r--src/matrixOperations/powm/spowma.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/matrixOperations/powm/spowma.c b/src/matrixOperations/powm/spowma.c
index eb48bda2..47205ab5 100644
--- a/src/matrixOperations/powm/spowma.c
+++ b/src/matrixOperations/powm/spowma.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"
@@ -26,10 +26,10 @@ void spowma(float* in, int rows, float power, float* out){
float* ZEROS;
/* Data initialization */
- eigenvalues = malloc((uint)(rows*rows)*sizeof(floatComplex));
- eigenvectors = malloc((uint)(rows*rows)*sizeof(floatComplex));
- tmp = malloc((uint)(rows*rows)*sizeof(floatComplex));
- ZEROS = malloc((uint)(rows*rows)*sizeof(float));
+ eigenvalues = (floatComplex*)malloc((unsigned int)(rows*rows)*sizeof(floatComplex));
+ eigenvectors = (floatComplex*)malloc((unsigned int)(rows*rows)*sizeof(floatComplex));
+ tmp = (floatComplex*)malloc((unsigned int)(rows*rows)*sizeof(floatComplex));
+ ZEROS = (float*)malloc((unsigned int)(rows*rows)*sizeof(float));
/* symmetric test*/
for(i=0;i<rows;i++) {