From 89b96cb79cbe75ba8c1afea61b3caca37a083f62 Mon Sep 17 00:00:00 2001 From: harpreet Date: Fri, 1 Jul 2016 00:11:55 +0530 Subject: Windows Included --- sci_gateway/cpp/sci_sym_remove.cpp | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'sci_gateway/cpp/sci_sym_remove.cpp') diff --git a/sci_gateway/cpp/sci_sym_remove.cpp b/sci_gateway/cpp/sci_sym_remove.cpp index 0289064..c09cbc7 100644 --- a/sci_gateway/cpp/sci_sym_remove.cpp +++ b/sci_gateway/cpp/sci_sym_remove.cpp @@ -17,6 +17,8 @@ extern "C" { #include #include #include +#include +#include #include #include //function to remove specified columns @@ -30,7 +32,7 @@ int sci_sym_delete_cols(char *fname, unsigned long fname_len){ int num_cols;//stores the number of columns in the loaded problem int iType= 0;//stores the datatype of matrix int rows=0,columns=0;//integer variables to denote the number of rows and columns in the array denoting the column numbers to be deleted - unsigned int *value=NULL;//pointer to integer array allocated dynamically having the indices to be deleted + int *value=NULL;//pointer to integer array allocated dynamically having the indices to be deleted double *array_ptr=NULL;//double array pointer to the array denoting the column numbers to be deleted int *piAddressVarOne = NULL;//pointer used to access first and second arguments of the function int output=0;//output parameter for the symphony sym_delete_cols function @@ -63,11 +65,11 @@ int sci_sym_delete_cols(char *fname, unsigned long fname_len){ } //dynamically allocate the integer array - value=(unsigned int *)malloc(sizeof(unsigned int)*columns); + value=(int *)malloc(sizeof(int)*columns); //store double values in the integer array by typecasting while(count