00001
00002
00003
00004
00005 #ifndef PETSCMPSREADER
00006 #define PETSCMPSREADER
00007
00008 #include "CMpsReader.h"
00009 #include "petscmat.h"
00010
00011 #ifdef __cplusplus
00012 extern "C" {
00013 #endif
00014 void PetscScatterDoubleStar ( double dc[], Vec c, int * ierr );
00015 void PetscScatterBooleanStar ( char cc[], Vec c, int * ierr );
00016 void PetscSymMatrixFromTriple( int m,
00017 int irowQ[], int nnzQ, int jcolQ[],
00018 double dQ[], Mat Q, int * ierr );
00019 void PetscGenMatrixFromTriple( int m, int n,
00020 int irowA[], int nnzA, int jcolA[],
00021 double dA[], Mat A, int * ierr );
00022 void CMpsReaderReadPetscQpGen( void * reader,
00023 Vec templateXVec,
00024 Vec c, Mat Q,
00025 Vec xlow, Vec ixlow,
00026 Vec xupp, Vec ixupp,
00027 Vec templateYVec,
00028 Mat A, Vec b,
00029 Vec templateZVec,
00030 Mat C,
00031 Vec clow, Vec iclow,
00032 Vec cupp, Vec icupp,
00033 int * ierr );
00034
00035 #ifdef __cplusplus
00036 };
00037 #endif
00038
00039 #endif